Commit 1219d02d authored by POLYMER's avatar POLYMER

fix

parent ce38c4ea
...@@ -8,7 +8,7 @@ function cm.initial_effect(c) ...@@ -8,7 +8,7 @@ function cm.initial_effect(c)
local e1=rsef.SV_CANNOT_BE_MATERIAL(c,"xyz") local e1=rsef.SV_CANNOT_BE_MATERIAL(c,"xyz")
local e2=rsef.STO(c,EVENT_ATTACK_ANNOUNCE,{m,1},nil,"dis,atk",nil,cm.atkcon,rscost.rmxyz(2),cm.atktg,cm.atkop) local e2=rsef.STO(c,EVENT_ATTACK_ANNOUNCE,{m,1},nil,"dis,atk",nil,cm.atkcon,rscost.rmxyz(2),cm.atktg,cm.atkop)
end end
cm.xyz_number=62 aux.xyz_number[10150099]=62
function cm.ovfilter(c) function cm.ovfilter(c)
return c:IsFaceup() and c:IsSetCard(0x107b) and c:IsType(TYPE_XYZ) and c:IsRank(8) return c:IsFaceup() and c:IsSetCard(0x107b) and c:IsType(TYPE_XYZ) and c:IsRank(8)
end end
......
...@@ -22,6 +22,7 @@ function c114514.initial_effect(c) ...@@ -22,6 +22,7 @@ function c114514.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
aux.xyz_number[114514]=114514
function c114514.rfilter(c,tp) function c114514.rfilter(c,tp)
return c:IsControler(tp) and c:IsFaceup() and not c:IsCode(114514) return c:IsControler(tp) and c:IsFaceup() and not c:IsCode(114514)
end end
......
...@@ -62,8 +62,7 @@ end ...@@ -62,8 +62,7 @@ end
function c12825613.drop(e,tp,eg,ep,ev,re,r,rp) function c12825613.drop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Draw(p,d,REASON_EFFECT) if Duel.Draw(p,d,REASON_EFFECT)>0 and c:GetOwner()~=e:GetHandlerPlayer() then
if c:GetOwner()~=e:GetHandlerPlayer() then
if Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 then if Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 then
Duel.GetControl(c,1-tp) Duel.GetControl(c,1-tp)
else else
......
...@@ -37,6 +37,7 @@ function cm.initial_effect(c) ...@@ -37,6 +37,7 @@ function cm.initial_effect(c)
e3:SetOperation(cm.remop) e3:SetOperation(cm.remop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
aux.xyz_number[m]=21
function cm.ovfilter(c) function cm.ovfilter(c)
return c:IsFaceup() and c:IsXyzType(TYPE_XYZ) and c:IsRank(6) return c:IsFaceup() and c:IsXyzType(TYPE_XYZ) and c:IsRank(6)
end end
......
...@@ -80,7 +80,7 @@ function s.initial_effect(c) ...@@ -80,7 +80,7 @@ function s.initial_effect(c)
e12:SetOperation(s.penop) e12:SetOperation(s.penop)
c:RegisterEffect(e12) c:RegisterEffect(e12)
end end
s.xyz_number=95 aux.xyz_number[id]=95
s.pendulum_level=9 s.pendulum_level=9
function s.chlimit(e,ep,tp) function s.chlimit(e,ep,tp)
return tp==ep return tp==ep
......
...@@ -37,7 +37,7 @@ function s.initial_effect(c) ...@@ -37,7 +37,7 @@ function s.initial_effect(c)
e3:SetOperation(s.op) e3:SetOperation(s.op)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
s.xyz_number=107 aux.xyz_number[id]=107
function s.cfilter(c) function s.cfilter(c)
return c:IsSetCard(0x95) and c:IsType(TYPE_SPELL) and c:IsDiscardable() return c:IsSetCard(0x95) and c:IsType(TYPE_SPELL) and c:IsDiscardable()
end end
......
...@@ -24,6 +24,7 @@ function c22348446.initial_effect(c) ...@@ -24,6 +24,7 @@ function c22348446.initial_effect(c)
e2:SetOperation(c22348446.op) e2:SetOperation(c22348446.op)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
aux.xyz_number[22348446]=90
function c22348446.discon(e,tp,eg,ep,ev,re,r,rp) function c22348446.discon(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) or Duel.IsChainDisablable(ev) return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) or Duel.IsChainDisablable(ev)
end end
......
...@@ -25,7 +25,7 @@ function cm.initial_effect(c) ...@@ -25,7 +25,7 @@ function cm.initial_effect(c)
e2:SetOperation(cm.desop) e2:SetOperation(cm.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
cm.xyz_number=39 aux.xyz_number[m]=39
function cm.efilter(e,te) function cm.efilter(e,te)
local tc=te:GetHandler() local tc=te:GetHandler()
if tc==e:GetHandler() then return false end if tc==e:GetHandler() then return false end
......
...@@ -43,7 +43,7 @@ function c4875102.initial_effect(c) ...@@ -43,7 +43,7 @@ function c4875102.initial_effect(c)
e7:SetValue(aux.xyzlimit) e7:SetValue(aux.xyzlimit)
c:RegisterEffect(e7) c:RegisterEffect(e7)
end end
c4875102.xyz_number=62 aux.xyz_number[4875102]=62
function c4875102.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c4875102.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,2,2,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,2,2,REASON_COST)
......
...@@ -28,8 +28,7 @@ function c49678550.initial_effect(c) ...@@ -28,8 +28,7 @@ function c49678550.initial_effect(c)
e2:SetOperation(c49678550.spop) e2:SetOperation(c49678550.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c49678550.xyz_number=102 aux.xyz_number[49678550]=102
function c49678550.counterfilter(c) function c49678550.counterfilter(c)
return c:IsSetCard(0x86) or not c:IsSummonLocation(LOCATION_HAND) or not c:IsSummonLocation(LOCATION_GRAVE) return c:IsSetCard(0x86) or not c:IsSummonLocation(LOCATION_HAND) or not c:IsSummonLocation(LOCATION_GRAVE)
end end
......
...@@ -86,16 +86,17 @@ function cm.initial_effect(c) ...@@ -86,16 +86,17 @@ function cm.initial_effect(c)
e12:SetOperation(cm.atkop) e12:SetOperation(cm.atkop)
c:RegisterEffect(e12) c:RegisterEffect(e12)
end end
function cm.spfilter(c) aux.xyz_number[m]=1500
function cm.spfilter(c)
return c:IsSetCard(0x1115) and c:IsAbleToRemoveAsCost() and not c:IsCode(m) return c:IsSetCard(0x1115) and c:IsAbleToRemoveAsCost() and not c:IsCode(m)
end end
function cm.spcon(e,c) function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_EXTRA,0,14,c) and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_EXTRA,0,14,c)
end end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_EXTRA,0,c) local g=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_EXTRA,0,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=g:CancelableSelect(tp,14,14,nil) local sg=g:CancelableSelect(tp,14,14,nil)
...@@ -110,56 +111,56 @@ end ...@@ -110,56 +111,56 @@ end
Duel.Remove(g,POS_FACEDOWN,REASON_SPSUMMON) Duel.Remove(g,POS_FACEDOWN,REASON_SPSUMMON)
g:DeleteGroup() g:DeleteGroup()
end end
function cm.atkval(e,c) function cm.atkval(e,c)
if Duel.GetTurnPlayer()==1-e:GetHandlerPlayer() then if Duel.GetTurnPlayer()==1-e:GetHandlerPlayer() then
return 150000 return 150000
else else
return 1500 return 1500
end end
end end
function cm.indtg(e,c) function cm.indtg(e,c)
return c:IsCode(m) return c:IsCode(m)
end end
function cm.efilter(e,re) function cm.efilter(e,re)
return e:GetHandlerPlayer()~=re:GetOwnerPlayer() return e:GetHandlerPlayer()~=re:GetOwnerPlayer()
end end
function cm.wincon(e,tp,eg,ep,ev,re,r,rp) function cm.wincon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousControler(tp) and c:GetReasonPlayer()==1-tp return c:IsPreviousControler(tp) and c:GetReasonPlayer()==1-tp
end end
function cm.winop(e,tp,eg,ep,ev,re,r,rp) function cm.winop(e,tp,eg,ep,ev,re,r,rp)
local WIN_REASON_NUMERONIUS_NUMERONIA=0x21 local WIN_REASON_NUMERONIUS_NUMERONIA=0x21
Duel.Win(tp,WIN_REASON_NUMERONIUS_NUMERONIA) Duel.Win(tp,WIN_REASON_NUMERONIUS_NUMERONIA)
end end
function cm.filter(c) function cm.filter(c)
return c:IsSetCard(0x115) and c:IsAbleToGrave() return c:IsSetCard(0x115) and c:IsAbleToGrave()
end end
function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK)
end end
function cm.tgop(e,tp,eg,ep,ev,re,r,rp) function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK,0,1,1,nil)
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
function cm.thfilter(c,tp) function cm.thfilter(c,tp)
return c:IsSetCard(0x115) and c:IsType(TYPE_SPELL) and c:IsAbleToHand() return c:IsSetCard(0x115) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.thfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(cm.thfilter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local sg=Duel.SelectTarget(tp,cm.thfilter,tp,LOCATION_GRAVE,0,1,1,nil) local sg=Duel.SelectTarget(tp,cm.thfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,sg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,sg,1,0,0)
end end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
end end
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
...@@ -169,15 +170,15 @@ end ...@@ -169,15 +170,15 @@ end
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function cm.opfilter(c,tp) function cm.opfilter(c,tp)
return c:IsSetCard(0x115) and c:IsType(TYPE_SPELL) and c:IsAbleToHand() return c:IsSetCard(0x115) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
and not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,c:GetCode()) and not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,1,nil,c:GetCode())
end end
function cm.tg2(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.opfilter,tp,LOCATION_DECK,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(cm.opfilter,tp,LOCATION_DECK,0,1,nil,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function cm.op2(e,tp,eg,ep,ev,re,r,rp) function cm.op2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.opfilter,tp,LOCATION_DECK,0,1,1,nil,tp) local g=Duel.SelectMatchingCard(tp,cm.opfilter,tp,LOCATION_DECK,0,1,1,nil,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
...@@ -185,13 +186,13 @@ end ...@@ -185,13 +186,13 @@ end
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
function cm.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsFaceup() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
end end
function cm.atkop(e,tp,eg,ep,ev,re,r,rp) function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -38,7 +38,7 @@ function s.initial_effect(c) ...@@ -38,7 +38,7 @@ function s.initial_effect(c)
e2:SetOperation(s.operation) e2:SetOperation(s.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
s.xyz_number=69 aux.xyz_number[id]=69
--Xyz Summon(normal) --Xyz Summon(normal)
function s.Xyzfilter2(c,sc) function s.Xyzfilter2(c,sc)
return c:IsSetCard(0x76) and c:IsCanBeXyzMaterial(sc) and c:IsXyzLevel(sc,4) return c:IsSetCard(0x76) and c:IsCanBeXyzMaterial(sc) and c:IsXyzLevel(sc,4)
......
...@@ -55,7 +55,7 @@ function c79029505.initial_effect(c) ...@@ -55,7 +55,7 @@ function c79029505.initial_effect(c)
e6:SetValue(1) e6:SetValue(1)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
c79029505.xyz_number=88 aux.xyz_number[79029505]=88
function c79029505.sprfilter(c) function c79029505.sprfilter(c)
return c:GetOriginalLevel()==10 and c:IsFaceup() and c:IsCanOverlay() return c:GetOriginalLevel()==10 and c:IsFaceup() and c:IsCanOverlay()
end end
......
...@@ -59,7 +59,7 @@ function c79029506.initial_effect(c) ...@@ -59,7 +59,7 @@ function c79029506.initial_effect(c)
e7:SetOperation(c79029506.spop) e7:SetOperation(c79029506.spop)
c:RegisterEffect(e7) c:RegisterEffect(e7)
end end
c79029506.xyz_number=5 aux.xyz_number[79029506]=5
function c79029506.atkval(e,c) function c79029506.atkval(e,c)
local g=e:GetHandler():GetOverlayGroup() local g=e:GetHandler():GetOverlayGroup()
return g:GetCount()*1500 return g:GetCount()*1500
......
...@@ -49,7 +49,7 @@ function c79029515.initial_effect(c) ...@@ -49,7 +49,7 @@ function c79029515.initial_effect(c)
e1:SetValue(c79029515.splimit) e1:SetValue(c79029515.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c79029515.xyz_number=103 aux.xyz_number[79029515]=103
function c79029515.splimit(e,se,sp,st) function c79029515.splimit(e,se,sp,st)
return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL) return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL)
end end
......
...@@ -41,7 +41,7 @@ function c79029516.initial_effect(c) ...@@ -41,7 +41,7 @@ function c79029516.initial_effect(c)
e4:SetOperation(c79029516.spop) e4:SetOperation(c79029516.spop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c79029516.xyz_number=53 aux.xyz_number[79029516]=53
function c79029516.ovfilter(c) function c79029516.ovfilter(c)
return c:IsFaceup() and c:IsCode(23998625) return c:IsFaceup() and c:IsCode(23998625)
end end
......
...@@ -45,7 +45,7 @@ function c79029520.initial_effect(c) ...@@ -45,7 +45,7 @@ function c79029520.initial_effect(c)
e3:SetOperation(c79029520.spop1) e3:SetOperation(c79029520.spop1)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c79029520.xyz_number=62 aux.xyz_number[79029520]=62
function c79029520.atkval(e,c) function c79029520.atkval(e,c)
return c:GetOverlayCount()*500 return c:GetOverlayCount()*500
end end
......
...@@ -38,7 +38,7 @@ function c79029521.initial_effect(c) ...@@ -38,7 +38,7 @@ function c79029521.initial_effect(c)
e5:SetCode(EVENT_BECOME_TARGET) e5:SetCode(EVENT_BECOME_TARGET)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c79029521.xyz_number=69 aux.xyz_number[79029521]=69
function c79029521.effilter(c) function c79029521.effilter(c)
return c:IsType(TYPE_MONSTER) and c:IsFaceup() return c:IsType(TYPE_MONSTER) and c:IsFaceup()
end end
......
...@@ -33,6 +33,7 @@ function c79029525.initial_effect(c) ...@@ -33,6 +33,7 @@ function c79029525.initial_effect(c)
e3:SetOperation(c79029525.op) e3:SetOperation(c79029525.op)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
aux.xyz_number[79029525]=65
function c79029525.eqcon(e,tp,eg,ep,ev,re,r,rp) function c79029525.eqcon(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetLabelObject() local ec=e:GetLabelObject()
return ec==nil or ec:GetFlagEffect(79029525)==0 and e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) return ec==nil or ec:GetFlagEffect(79029525)==0 and e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
......
...@@ -53,7 +53,7 @@ function c79029526.initial_effect(c) ...@@ -53,7 +53,7 @@ function c79029526.initial_effect(c)
e1:SetValue(c79029526.splimit) e1:SetValue(c79029526.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c79029526.xyz_number=101 aux.xyz_number[79029526]=101
function c79029526.splimit(e,se,sp,st) function c79029526.splimit(e,se,sp,st)
return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL) return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL)
end end
......
...@@ -44,7 +44,7 @@ function c79029528.initial_effect(c) ...@@ -44,7 +44,7 @@ function c79029528.initial_effect(c)
e1:SetValue(c79029528.splimit) e1:SetValue(c79029528.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c79029528.xyz_number=104 aux.xyz_number[79029528]=104
function c79029528.splimit(e,se,sp,st) function c79029528.splimit(e,se,sp,st)
return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL) return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL)
end end
......
...@@ -37,7 +37,7 @@ function c79029530.initial_effect(c) ...@@ -37,7 +37,7 @@ function c79029530.initial_effect(c)
e3:SetOperation(c79029530.atkop) e3:SetOperation(c79029530.atkop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c79029530.xyz_number=39 aux.xyz_number[79029530]=39
function c79029530.condition(e,tp,eg,ep,ev,re,r,rp,chk) function c79029530.condition(e,tp,eg,ep,ev,re,r,rp,chk)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and ep~=tp return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) and ep~=tp
end end
......
...@@ -40,7 +40,7 @@ function c79029531.initial_effect(c) ...@@ -40,7 +40,7 @@ function c79029531.initial_effect(c)
e1:SetValue(c79029531.splimit) e1:SetValue(c79029531.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c79029531.xyz_number=106 aux.xyz_number[79029531]=106
function c79029531.splimit(e,se,sp,st) function c79029531.splimit(e,se,sp,st)
return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL) return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL)
end end
......
...@@ -61,6 +61,7 @@ function c79029532.initial_effect(c) ...@@ -61,6 +61,7 @@ function c79029532.initial_effect(c)
e8:SetOperation(c79029532.atkop) e8:SetOperation(c79029532.atkop)
c:RegisterEffect(e8) c:RegisterEffect(e8)
end end
aux.xyz_number[79029532]=96
function c79029532.target(e,c) function c79029532.target(e,c)
return c:IsLocation(LOCATION_MZONE) return c:IsLocation(LOCATION_MZONE)
end end
......
...@@ -25,7 +25,7 @@ function c79029533.initial_effect(c) ...@@ -25,7 +25,7 @@ function c79029533.initial_effect(c)
e3:SetOperation(c79029533.op) e3:SetOperation(c79029533.op)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c79029533.xyz_number=54 aux.xyz_number[79029533]=54
function c79029533.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c79029533.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
......
...@@ -25,6 +25,7 @@ function c79029534.initial_effect(c) ...@@ -25,6 +25,7 @@ function c79029534.initial_effect(c)
e2:SetOperation(c79029534.dcop) e2:SetOperation(c79029534.dcop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
aux.xyz_number[79029534]=39
function c79029534.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c79029534.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
......
...@@ -44,7 +44,7 @@ function c79029549.initial_effect(c) ...@@ -44,7 +44,7 @@ function c79029549.initial_effect(c)
e5:SetOperation(c79029549.activate) e5:SetOperation(c79029549.activate)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c79029549.xyz_number=99 aux.xyz_number[79029549]=99
function c79029549.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c79029549.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
......
...@@ -45,7 +45,7 @@ function c79029550.initial_effect(c) ...@@ -45,7 +45,7 @@ function c79029550.initial_effect(c)
e5:SetOperation(c79029550.rop) e5:SetOperation(c79029550.rop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c79029550.xyz_number=0 aux.xyz_number[79029550]=0
function c79029550.mfilter(c,xyzc) function c79029550.mfilter(c,xyzc)
return c:IsXyzType(TYPE_XYZ) return c:IsXyzType(TYPE_XYZ)
end end
......
...@@ -59,7 +59,7 @@ function c79029555.initial_effect(c) ...@@ -59,7 +59,7 @@ function c79029555.initial_effect(c)
e1:SetValue(c79029555.splimit) e1:SetValue(c79029555.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c79029555.xyz_number=105 aux.xyz_number[79029555]=105
function c79029555.splimit(e,se,sp,st) function c79029555.splimit(e,se,sp,st)
return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL) return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL)
end end
......
...@@ -49,7 +49,7 @@ function c79029556.initial_effect(c) ...@@ -49,7 +49,7 @@ function c79029556.initial_effect(c)
e1:SetValue(c79029556.splimit) e1:SetValue(c79029556.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c79029556.xyz_number=102 aux.xyz_number[79029556]=102
function c79029556.splimit(e,se,sp,st) function c79029556.splimit(e,se,sp,st)
return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL) return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL)
end end
......
...@@ -35,7 +35,7 @@ function c79029557.initial_effect(c) ...@@ -35,7 +35,7 @@ function c79029557.initial_effect(c)
e1:SetValue(c79029557.splimit) e1:SetValue(c79029557.splimit)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c79029557.xyz_number=107 aux.xyz_number[79029557]=107
function c79029557.splimit(e,se,sp,st) function c79029557.splimit(e,se,sp,st)
return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL) return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL)
end end
......
...@@ -37,7 +37,7 @@ function c79029560.initial_effect(c) ...@@ -37,7 +37,7 @@ function c79029560.initial_effect(c)
e5:SetOperation(c79029560.slop) e5:SetOperation(c79029560.slop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c79029560.xyz_number=89 aux.xyz_number[79029560]=89
function c79029560.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) function c79029560.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
......
...@@ -65,7 +65,7 @@ function c79029561.initial_effect(c) ...@@ -65,7 +65,7 @@ function c79029561.initial_effect(c)
Duel.RegisterEffect(ge1,0) Duel.RegisterEffect(ge1,0)
end end
end end
c79029561.xyz_number=92 aux.xyz_number[79029561]=92
function c79029561.checkop(e,tp,eg,ep,ev,re,r,rp) function c79029561.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
while tc do while tc do
......
...@@ -36,7 +36,7 @@ function c79029562.initial_effect(c) ...@@ -36,7 +36,7 @@ function c79029562.initial_effect(c)
e3:SetOperation(c79029562.rop) e3:SetOperation(c79029562.rop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c79029562.xyz_number=73 aux.xyz_number[79029562]=73
function c79029562.atkcon(e,tp,eg,ep,ev,re,r,rp) function c79029562.atkcon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
......
...@@ -39,7 +39,7 @@ function s.initial_effect(c) ...@@ -39,7 +39,7 @@ function s.initial_effect(c)
e5:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e5:SetTargetRange(1,1) e5:SetTargetRange(1,1)
e5:SetValue(s.aclimit) e5:SetValue(s.aclimit)
Duel.RegisterEffect(e5) c:RegisterEffect(e5)
--tograve --tograve
local e6=Effect.CreateEffect(c) local e6=Effect.CreateEffect(c)
e6:SetCategory(CATEGORY_TOGRAVE) e6:SetCategory(CATEGORY_TOGRAVE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment