Commit 12d812c6 authored by mercury233's avatar mercury233

update

parent 96e06979
...@@ -28,7 +28,7 @@ function c10097168.valcheck(e,c) ...@@ -28,7 +28,7 @@ function c10097168.valcheck(e,c)
end end
end end
function c10097168.condition(e,tp,eg,ep,ev,re,r,rp) function c10097168.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE and e:GetLabel()==1 return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE) and e:GetLabel()==1
end end
function c10097168.filter(c) function c10097168.filter(c)
return c:IsFacedown() and c:GetSequence()~=5 return c:IsFacedown() and c:GetSequence()~=5
......
...@@ -39,7 +39,7 @@ function c10613952.initial_effect(c) ...@@ -39,7 +39,7 @@ function c10613952.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c10613952.condition(e,tp,eg,ep,ev,re,r,rp) function c10613952.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c10613952.filter(c,e,tp,ec) function c10613952.filter(c,e,tp,ec)
return c:IsSetCard(0x207a) and c:IsCanBeEffectTarget(e) and c:CheckUniqueOnField(tp) and c:CheckEquipTarget(ec) return c:IsSetCard(0x207a) and c:IsCanBeEffectTarget(e) and c:CheckUniqueOnField(tp) and c:CheckEquipTarget(ec)
......
...@@ -26,7 +26,7 @@ function c1127737.initial_effect(c) ...@@ -26,7 +26,7 @@ function c1127737.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c1127737.damcon1(e,tp,eg,ep,ev,re,r,rp) function c1127737.damcon1(e,tp,eg,ep,ev,re,r,rp)
return eg:GetFirst():GetSummonType()==SUMMON_TYPE_XYZ return eg:GetFirst():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c1127737.damtg1(e,tp,eg,ep,ev,re,r,rp,chk) function c1127737.damtg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -21,7 +21,7 @@ function c11705261.initial_effect(c) ...@@ -21,7 +21,7 @@ function c11705261.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c11705261.filter(c,tp) function c11705261.filter(c,tp)
return c:IsSetCard(0x107f) and c:IsControler(tp) and c:GetSummonType()==SUMMON_TYPE_XYZ return c:IsSetCard(0x107f) and c:IsControler(tp) and c:IsSummonType(SUMMON_TYPE_XYZ)
end end
function c11705261.condition(e,tp,eg,ep,ev,re,r,rp) function c11705261.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c11705261.filter,1,nil,tp) return eg:IsExists(c11705261.filter,1,nil,tp)
......
...@@ -34,7 +34,7 @@ function c12948099.initial_effect(c) ...@@ -34,7 +34,7 @@ function c12948099.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c12948099.tdcon(e,tp,eg,ep,ev,re,r,rp) function c12948099.tdcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c12948099.filter(c) function c12948099.filter(c)
return c:IsType(TYPE_XYZ) and c:GetRank()==4 and c:IsAbleToExtra() return c:IsType(TYPE_XYZ) and c:GetRank()==4 and c:IsAbleToExtra()
...@@ -90,5 +90,5 @@ function c12948099.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,5 +90,5 @@ function c12948099.efop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c12948099.drcon2(e,tp,eg,ep,ev,re,r,rp) function c12948099.drcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
...@@ -23,7 +23,7 @@ function c12986807.initial_effect(c) ...@@ -23,7 +23,7 @@ function c12986807.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c12986807.condition(e,tp,eg,ep,ev,re,r,rp) function c12986807.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c12986807.target(e,tp,eg,ep,ev,re,r,rp,chk) function c12986807.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -124,7 +124,7 @@ function c13073850.immcon(e) ...@@ -124,7 +124,7 @@ function c13073850.immcon(e)
return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL) return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c13073850.thcon(e,tp,eg,ep,ev,re,r,rp) function c13073850.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE and e:GetLabel()==1 return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE) and e:GetLabel()==1
end end
function c13073850.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c13073850.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsAbleToHand() end if chkc then return chkc:IsOnField() and chkc:IsAbleToHand() end
......
...@@ -115,7 +115,7 @@ function c13455674.synop(e,tp,eg,ep,ev,re,r,rp,c,tuner,mg) ...@@ -115,7 +115,7 @@ function c13455674.synop(e,tp,eg,ep,ev,re,r,rp,c,tuner,mg)
Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO) Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO)
end end
function c13455674.rmcon(e,tp,eg,ep,ev,re,r,rp) function c13455674.rmcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c13455674.rmfilter(c) function c13455674.rmfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
...@@ -136,7 +136,7 @@ function c13455674.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -136,7 +136,7 @@ function c13455674.rmop(e,tp,eg,ep,ev,re,r,rp)
end end
function c13455674.spcon(e,tp,eg,ep,ev,re,r,rp) function c13455674.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetSummonType()==SUMMON_TYPE_SYNCHRO and bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_SYNCHRO) and bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0
end end
function c13455674.spfilter(c,e,tp) function c13455674.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -25,7 +25,7 @@ function c13760677.initial_effect(c) ...@@ -25,7 +25,7 @@ function c13760677.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c13760677.cfilter(c,e,tp) function c13760677.cfilter(c,e,tp)
return c:IsRace(RACE_ZOMBIE) and c:GetSummonPlayer()==tp and c:GetSummonType()==SUMMON_TYPE_PENDULUM return c:IsRace(RACE_ZOMBIE) and c:GetSummonPlayer()==tp and c:IsSummonType(SUMMON_TYPE_PENDULUM)
and (not e or c:IsRelateToEffect(e)) and (not e or c:IsRelateToEffect(e))
end end
function c13760677.indcon(e,tp,eg,ep,ev,re,r,rp) function c13760677.indcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -18,7 +18,7 @@ function c1516510.initial_effect(c) ...@@ -18,7 +18,7 @@ function c1516510.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c1516510.condition(e,tp,eg,ep,ev,re,r,rp) function c1516510.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c1516510.operation(e,tp,eg,ep,ev,re,r,rp) function c1516510.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -55,7 +55,7 @@ function c1516510.lvfilter(c,fc) ...@@ -55,7 +55,7 @@ function c1516510.lvfilter(c,fc)
return c:IsCode(16178681) or c:CheckFusionSubstitute(fc) return c:IsCode(16178681) or c:CheckFusionSubstitute(fc)
end end
function c1516510.imfilter(c) function c1516510.imfilter(c)
return c:IsLocation(LOCATION_MZONE) and c:GetSummonType()==SUMMON_TYPE_PENDULUM return c:IsLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c1516510.valcheck(e,c) function c1516510.valcheck(e,c)
local g=c:GetMaterial() local g=c:GetMaterial()
......
...@@ -46,7 +46,7 @@ function c15545291.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -46,7 +46,7 @@ function c15545291.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end end
function c15545291.descon(e,tp,eg,ep,ev,re,r,rp) function c15545291.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c15545291.desfilter(c) function c15545291.desfilter(c)
return c:IsFacedown() return c:IsFacedown()
......
...@@ -34,7 +34,7 @@ function c15939229.initial_effect(c) ...@@ -34,7 +34,7 @@ function c15939229.initial_effect(c)
end end
function c15939229.sumsuc(e,tp,eg,ep,ev,re,r,rp) function c15939229.sumsuc(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:GetSummonType()~=SUMMON_TYPE_XYZ then return end if not c:IsSummonType(SUMMON_TYPE_XYZ) then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_ACTIVATE) e1:SetCode(EFFECT_CANNOT_ACTIVATE)
......
...@@ -37,7 +37,7 @@ function c16051717.valcheck(e,c) ...@@ -37,7 +37,7 @@ function c16051717.valcheck(e,c)
end end
end end
function c16051717.tncon(e,tp,eg,ep,ev,re,r,rp) function c16051717.tncon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and e:GetLabel()==1 return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and e:GetLabel()==1
end end
function c16051717.tnop(e,tp,eg,ep,ev,re,r,rp) function c16051717.tnop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -10,7 +10,7 @@ function c16469012.initial_effect(c) ...@@ -10,7 +10,7 @@ function c16469012.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c16469012.condition(e,tp,eg,ep,ev,re,r,rp) function c16469012.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c16469012.operation(e,tp,eg,ep,ev,re,r,rp) function c16469012.operation(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -23,7 +23,7 @@ function c17377751.initial_effect(c) ...@@ -23,7 +23,7 @@ function c17377751.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c17377751.spcon(e,tp,eg,ep,ev,re,r,rp,chk) function c17377751.spcon(e,tp,eg,ep,ev,re,r,rp,chk)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c17377751.filter(c,e,tp) function c17377751.filter(c,e,tp)
return not c:IsType(TYPE_TUNER) and c:IsLevelBelow(4) and c:IsSetCard(0x33) and c:IsCanBeSpecialSummoned(e,0,tp,false,true) return not c:IsType(TYPE_TUNER) and c:IsLevelBelow(4) and c:IsSetCard(0x33) and c:IsCanBeSpecialSummoned(e,0,tp,false,true)
......
...@@ -68,7 +68,7 @@ function c17540705.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +68,7 @@ function c17540705.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c17540705.regcon(e,tp,eg,ep,ev,re,r,rp) function c17540705.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c17540705.drreg(e,tp,eg,ep,ev,re,r,rp) function c17540705.drreg(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(17540706,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(17540706,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
......
...@@ -15,7 +15,7 @@ function c17548456.initial_effect(c) ...@@ -15,7 +15,7 @@ function c17548456.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c17548456.descon(e,tp,eg,ep,ev,re,r,rp) function c17548456.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c17548456.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c17548456.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -32,7 +32,7 @@ function c17760003.valcheck(e,c) ...@@ -32,7 +32,7 @@ function c17760003.valcheck(e,c)
e:SetLabel(att) e:SetLabel(att)
end end
function c17760003.regcon(e,tp,eg,ep,ev,re,r,rp) function c17760003.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
and e:GetLabelObject():GetLabel()~=0 and e:GetLabelObject():GetLabel()~=0
end end
function c17760003.regop(e,tp,eg,ep,ev,re,r,rp) function c17760003.regop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -36,7 +36,7 @@ function c17994645.valcheck(e,c) ...@@ -36,7 +36,7 @@ function c17994645.valcheck(e,c)
end end
end end
function c17994645.tncon(e,tp,eg,ep,ev,re,r,rp) function c17994645.tncon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and e:GetLabel()==1 return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and e:GetLabel()==1
end end
function c17994645.tnop(e,tp,eg,ep,ev,re,r,rp) function c17994645.tnop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -13,7 +13,7 @@ function c18322364.initial_effect(c) ...@@ -13,7 +13,7 @@ function c18322364.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c18322364.condition(e,tp,eg,ep,ev,re,r,rp) function c18322364.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c18322364.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c18322364.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end if chk==0 then return e:GetHandler():IsReleasable() end
......
...@@ -24,7 +24,7 @@ function c1855932.initial_effect(c) ...@@ -24,7 +24,7 @@ function c1855932.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c1855932.discon(e,tp,eg,ep,ev,re,r,rp) function c1855932.discon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c1855932.distg(e,tp,eg,ep,ev,re,r,rp,chk) function c1855932.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -54,7 +54,7 @@ function c19048328.matcheck(e,c) ...@@ -54,7 +54,7 @@ function c19048328.matcheck(e,c)
e:SetLabel(att) e:SetLabel(att)
end end
function c19048328.regcon(e,tp,eg,ep,ev,re,r,rp) function c19048328.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c19048328.regop(e,tp,eg,ep,ev,re,r,rp) function c19048328.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -99,7 +99,7 @@ end ...@@ -99,7 +99,7 @@ end
function c19048328.thcon(e,tp,eg,ep,ev,re,r,rp) function c19048328.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT) return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
and c:IsPreviousLocation(LOCATION_MZONE) and c:GetSummonType()==SUMMON_TYPE_SYNCHRO and c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c19048328.thfilter(c) function c19048328.thfilter(c)
return c:IsType(TYPE_TUNER) and c:IsAbleToHand() return c:IsType(TYPE_TUNER) and c:IsAbleToHand()
......
...@@ -25,7 +25,7 @@ function c19605133.initial_effect(c) ...@@ -25,7 +25,7 @@ function c19605133.initial_effect(c)
end end
function c19605133.spcon(e,tp,eg,ep,ev,re,r,rp) function c19605133.spcon(e,tp,eg,ep,ev,re,r,rp)
local ec=eg:GetFirst() local ec=eg:GetFirst()
return ec:IsSetCard(0x2a) and ec:GetSummonType()==SUMMON_TYPE_SYNCHRO and ec:GetSummonPlayer()==tp return ec:IsSetCard(0x2a) and ec:IsSummonType(SUMMON_TYPE_SYNCHRO) and ec:GetSummonPlayer()==tp
end end
function c19605133.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c19605133.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -18,7 +18,7 @@ function c19847532.initial_effect(c) ...@@ -18,7 +18,7 @@ function c19847532.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c19847532.condition(e,tp,eg,ep,ev,re,r,rp) function c19847532.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c19847532.desfilter(c) function c19847532.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
...@@ -76,7 +76,7 @@ function c20003527.valcheck(e,c) ...@@ -76,7 +76,7 @@ function c20003527.valcheck(e,c)
e:SetLabel(g:FilterCount(Card.IsAttribute,nil,ATTRIBUTE_WATER)) e:SetLabel(g:FilterCount(Card.IsAttribute,nil,ATTRIBUTE_WATER))
end end
function c20003527.addcon(e,tp,eg,ep,ev,re,r,rp) function c20003527.addcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c20003527.addc(e,tp,eg,ep,ev,re,r,rp) function c20003527.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
......
...@@ -28,7 +28,7 @@ function c20374351.initial_effect(c) ...@@ -28,7 +28,7 @@ function c20374351.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c20374351.condition(e,tp,eg,ep,ev,re,r,rp) function c20374351.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c20374351.target(e,tp,eg,ep,ev,re,r,rp,chk) function c20374351.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -31,7 +31,7 @@ function c20529766.valcheck(e,c) ...@@ -31,7 +31,7 @@ function c20529766.valcheck(e,c)
end end
function c20529766.condition(e,tp,eg,ep,ev,re,r,rp) function c20529766.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:GetSummonType()==SUMMON_TYPE_ADVANCE and e:GetLabel()~=0 return c:IsSummonType(SUMMON_TYPE_ADVANCE) and e:GetLabel()~=0
end end
function c20529766.operation(e,tp,eg,ep,ev,re,r,rp) function c20529766.operation(e,tp,eg,ep,ev,re,r,rp)
local flag=e:GetLabel() local flag=e:GetLabel()
......
...@@ -62,7 +62,7 @@ function c21105106.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) ...@@ -62,7 +62,7 @@ function c21105106.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsLocation(LOCATION_EXTRA) return c:IsLocation(LOCATION_EXTRA)
end end
function c21105106.rmcon(e,tp,eg,ep,ev,re,r,rp) function c21105106.rmcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_RITUAL return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c21105106.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) function c21105106.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_NORMALSUMMON)==0 if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_NORMALSUMMON)==0
......
...@@ -66,7 +66,7 @@ function c21113684.attackup(e,c) ...@@ -66,7 +66,7 @@ function c21113684.attackup(e,c)
return c:GetCounter(0x1)*1000 return c:GetCounter(0x1)*1000
end end
function c21113684.addcc(e,tp,eg,ep,ev,re,r,rp) function c21113684.addcc(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c21113684.addct(e,tp,eg,ep,ev,re,r,rp,chk) function c21113684.addct(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -27,7 +27,7 @@ function c21223277.initial_effect(c) ...@@ -27,7 +27,7 @@ function c21223277.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c21223277.condition(e,tp,eg,ep,ev,re,r,rp) function c21223277.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c21223277.filter(c,e,tp,ec) function c21223277.filter(c,e,tp,ec)
return c:IsSetCard(0x207a) and c:IsCanBeEffectTarget(e) and c:CheckUniqueOnField(tp) and c:CheckEquipTarget(ec) return c:IsSetCard(0x207a) and c:IsCanBeEffectTarget(e) and c:CheckUniqueOnField(tp) and c:CheckEquipTarget(ec)
......
...@@ -27,7 +27,7 @@ function c21495657.splimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -27,7 +27,7 @@ function c21495657.splimit(e,c,sump,sumtype,sumpos,targetp)
return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end end
function c21495657.condition(e,tp,eg,ep,ev,re,r,rp) function c21495657.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM or e:GetHandler():IsPreviousLocation(LOCATION_DECK) return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) or e:GetHandler():IsPreviousLocation(LOCATION_DECK)
end end
function c21495657.filter(c) function c21495657.filter(c)
return c:IsFaceup() and (c:IsSetCard(0x9e) or c:IsSetCard(0xc4)) and not c:IsType(TYPE_TUNER) and not c:IsCode(21495657) return c:IsFaceup() and (c:IsSetCard(0x9e) or c:IsSetCard(0xc4)) and not c:IsType(TYPE_TUNER) and not c:IsCode(21495657)
......
...@@ -28,7 +28,7 @@ function c21521304.initial_effect(c) ...@@ -28,7 +28,7 @@ function c21521304.initial_effect(c)
end end
c21521304.xyz_number=39 c21521304.xyz_number=39
function c21521304.atkcon(e,tp,eg,ep,ev,re,r,rp) function c21521304.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c21521304.atkop(e,tp,eg,ep,ev,re,r,rp) function c21521304.atkop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
......
...@@ -12,7 +12,7 @@ function c2158562.initial_effect(c) ...@@ -12,7 +12,7 @@ function c2158562.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c2158562.descon(e,tp,eg,ep,ev,re,r,rp) function c2158562.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c2158562.filter(c) function c2158562.filter(c)
return c:IsFaceup() and c:IsType(TYPE_SPELL) return c:IsFaceup() and c:IsType(TYPE_SPELL)
......
...@@ -14,7 +14,7 @@ function c21715135.initial_effect(c) ...@@ -14,7 +14,7 @@ function c21715135.initial_effect(c)
Duel.AddCustomActivityCounter(21715135,ACTIVITY_SPSUMMON,c21715135.counterfilter) Duel.AddCustomActivityCounter(21715135,ACTIVITY_SPSUMMON,c21715135.counterfilter)
end end
function c21715135.counterfilter(c) function c21715135.counterfilter(c)
return c:GetSummonType()==SUMMON_TYPE_XYZ return c:IsSummonType(SUMMON_TYPE_XYZ)
end end
function c21715135.condition(e,tp,eg,ep,ev,re,r,rp) function c21715135.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
......
...@@ -29,7 +29,7 @@ function c22009013.valcheck(e,c) ...@@ -29,7 +29,7 @@ function c22009013.valcheck(e,c)
end end
end end
function c22009013.condition(e,tp,eg,ep,ev,re,r,rp) function c22009013.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE and e:GetLabel()==1 return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE) and e:GetLabel()==1
end end
function c22009013.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c22009013.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,1000) end if chk==0 then return Duel.CheckLPCost(tp,1000) end
......
...@@ -16,7 +16,7 @@ function c2203790.initial_effect(c) ...@@ -16,7 +16,7 @@ function c2203790.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c2203790.descon(e,tp,eg,ep,ev,re,r,rp) function c2203790.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c2203790.filter(c) function c2203790.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
...@@ -73,7 +73,7 @@ function c22200403.effcon(e) ...@@ -73,7 +73,7 @@ function c22200403.effcon(e)
end end
function c22200403.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c22200403.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=e:GetHandler():GetBattleTarget() local tc=e:GetHandler():GetBattleTarget()
if chk==0 then return tc and tc:IsFaceup() and tc:GetSummonType()==SUMMON_TYPE_PENDULUM end if chk==0 then return tc and tc:IsFaceup() and tc:IsSummonType(SUMMON_TYPE_PENDULUM) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0)
end end
function c22200403.desop(e,tp,eg,ep,ev,re,r,rp) function c22200403.desop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -34,7 +34,7 @@ function c22617205.splimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -34,7 +34,7 @@ function c22617205.splimit(e,c,sump,sumtype,sumpos,targetp)
return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end end
function c22617205.condition(e,tp,eg,ep,ev,re,r,rp) function c22617205.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c22617205.filter1(c) function c22617205.filter1(c)
return c:IsFaceup() and (c:IsSetCard(0x9c) or c:IsSetCard(0xc4)) return c:IsFaceup() and (c:IsSetCard(0x9c) or c:IsSetCard(0xc4))
......
...@@ -27,7 +27,7 @@ function c22653490.initial_effect(c) ...@@ -27,7 +27,7 @@ function c22653490.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c22653490.tdcon1(e,tp,eg,ep,ev,re,r,rp) function c22653490.tdcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c22653490.tdfilter1(c) function c22653490.tdfilter1(c)
return c:IsFacedown() and c:IsAbleToDeck() return c:IsFacedown() and c:IsAbleToDeck()
......
...@@ -53,7 +53,7 @@ function c22923081.addop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function c22923081.addop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c22923081.addcon(e,tp,eg,ep,ev,re,r,rp) function c22923081.addcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c22923081.atkval(e,c) function c22923081.atkval(e,c)
return c:GetCounter(0x1)*400 return c:GetCounter(0x1)*400
......
...@@ -43,7 +43,7 @@ function c22996376.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -43,7 +43,7 @@ function c22996376.otop(e,tp,eg,ep,ev,re,r,rp,c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c22996376.thcon(e,tp,eg,ep,ev,re,r,rp) function c22996376.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c22996376.filter(c) function c22996376.filter(c)
return c:IsRace(RACE_BEAST) and c:IsAbleToHand() return c:IsRace(RACE_BEAST) and c:IsAbleToHand()
......
...@@ -54,7 +54,7 @@ function c23064604.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -54,7 +54,7 @@ function c23064604.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end end
function c23064604.tdcon(e,tp,eg,ep,ev,re,r,rp) function c23064604.tdcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c23064604.tgfilter(c) function c23064604.tgfilter(c)
return c:IsSetCard(0xbe) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToGrave() return c:IsSetCard(0xbe) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToGrave()
......
...@@ -30,7 +30,7 @@ function c23166823.splimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -30,7 +30,7 @@ function c23166823.splimit(e,c,sump,sumtype,sumpos,targetp)
return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end end
function c23166823.condition(e,tp,eg,ep,ev,re,r,rp) function c23166823.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c23166823.filter(c) function c23166823.filter(c)
return c:IsFaceup() and c:IsSetCard(0xc4) and c:IsType(TYPE_PENDULUM) and not c:IsCode(23166823) and c:IsAbleToHand() return c:IsFaceup() and c:IsSetCard(0xc4) and c:IsType(TYPE_PENDULUM) and not c:IsCode(23166823) and c:IsAbleToHand()
......
...@@ -46,7 +46,7 @@ function c23338098.valcheck(e,c) ...@@ -46,7 +46,7 @@ function c23338098.valcheck(e,c)
end end
end end
function c23338098.tncon(e,tp,eg,ep,ev,re,r,rp) function c23338098.tncon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and e:GetLabel()==1 return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and e:GetLabel()==1
end end
function c23338098.tnop(e,tp,eg,ep,ev,re,r,rp) function c23338098.tnop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -35,7 +35,7 @@ function c23603403.initial_effect(c) ...@@ -35,7 +35,7 @@ function c23603403.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c23603403.descon(e,tp,eg,ep,ev,re,r,rp) function c23603403.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ and e:GetLabel()==1 return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) and e:GetLabel()==1
end end
function c23603403.desfilter(c) function c23603403.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
...@@ -46,7 +46,7 @@ function c23689697.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -46,7 +46,7 @@ function c23689697.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL) Duel.Release(sg,REASON_SUMMON+REASON_MATERIAL)
end end
function c23689697.descon(e,tp,eg,ep,ev,re,r,rp) function c23689697.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c23689697.filter(c) function c23689697.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
...@@ -38,7 +38,7 @@ function c23770284.valcheck(e,c) ...@@ -38,7 +38,7 @@ function c23770284.valcheck(e,c)
end end
end end
function c23770284.condition(e,tp,eg,ep,ev,re,r,rp) function c23770284.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE and e:GetLabel()==1 return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE) and e:GetLabel()==1
end end
function c23770284.operation(e,tp,eg,ep,ev,re,r,rp) function c23770284.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -26,7 +26,7 @@ function c23874409.initial_effect(c) ...@@ -26,7 +26,7 @@ function c23874409.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c23874409.spcon(e,tp,eg,ep,ev,re,r,rp) function c23874409.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c23874409.spfilter(c,e,tp) function c23874409.spfilter(c,e,tp)
return c:IsSetCard(0x11) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x11) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -46,7 +46,7 @@ function c24610207.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function c24610207.efop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c24610207.drcon(e,tp,eg,ep,ev,re,r,rp) function c24610207.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c24610207.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c24610207.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -33,7 +33,7 @@ function c25165047.initial_effect(c) ...@@ -33,7 +33,7 @@ function c25165047.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c25165047.lpcon(e,tp,eg,ep,ev,re,r,rp) function c25165047.lpcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c25165047.lpop(e,tp,eg,ep,ev,re,r,rp) function c25165047.lpop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(tp,4000) Duel.SetLP(tp,4000)
......
...@@ -38,7 +38,7 @@ function c25451652.initial_effect(c) ...@@ -38,7 +38,7 @@ function c25451652.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c25451652.spcon(e,tp,eg,ep,ev,re,r,rp) function c25451652.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c25451652.ctfilter(c) function c25451652.ctfilter(c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) return c:IsFaceup() and c:IsType(TYPE_EFFECT)
......
...@@ -16,7 +16,7 @@ function c25472513.initial_effect(c) ...@@ -16,7 +16,7 @@ function c25472513.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c25472513.spcon(e,tp,eg,ep,ev,re,r,rp) function c25472513.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c25472513.spfilter(c,e,tp) function c25472513.spfilter(c,e,tp)
return c:GetLevel()==2 and not c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:GetLevel()==2 and not c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
......
...@@ -76,7 +76,7 @@ function c25524823.valcheck(e,c) ...@@ -76,7 +76,7 @@ function c25524823.valcheck(e,c)
e:GetLabelObject():SetLabel(ct) e:GetLabelObject():SetLabel(ct)
end end
function c25524823.condition(e,tp,eg,ep,ev,re,r,rp) function c25524823.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c25524823.filter(c) function c25524823.filter(c)
return c:IsFacedown() return c:IsFacedown()
......
...@@ -12,7 +12,7 @@ function c26205777.initial_effect(c) ...@@ -12,7 +12,7 @@ function c26205777.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c26205777.condition(e,tp,eg,ep,ev,re,r,rp) function c26205777.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c26205777.target(e,tp,eg,ep,ev,re,r,rp,chk) function c26205777.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -15,7 +15,7 @@ function c26304459.initial_effect(c) ...@@ -15,7 +15,7 @@ function c26304459.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c26304459.remcon(e,tp,eg,ep,ev,re,r,rp) function c26304459.remcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c26304459.remtg(e,tp,eg,ep,ev,re,r,rp,chk) function c26304459.remtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -79,7 +79,7 @@ function c26420373.hspcon(e,c) ...@@ -79,7 +79,7 @@ function c26420373.hspcon(e,c)
and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end end
function c26420373.spcon(e,tp,eg,ep,ev,re,r,rp) function c26420373.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c26420373.spfilter(c,e,tp) function c26420373.spfilter(c,e,tp)
return c:IsSetCard(0x2016) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x2016) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -11,7 +11,7 @@ end ...@@ -11,7 +11,7 @@ end
function c26722601.sumop(e,tp,eg,ep,ev,re,r,rp) function c26722601.sumop(e,tp,eg,ep,ev,re,r,rp)
local ec=eg:GetFirst() local ec=eg:GetFirst()
local c=e:GetHandler() local c=e:GetHandler()
if ec~=e:GetHandler() and ec:IsSetCard(0x100a) and ec:GetSummonType()==SUMMON_TYPE_ADVANCE then if ec~=e:GetHandler() and ec:IsSetCard(0x100a) and ec:IsSummonType(SUMMON_TYPE_ADVANCE) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
......
...@@ -38,7 +38,7 @@ function c26949946.initial_effect(c) ...@@ -38,7 +38,7 @@ function c26949946.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c26949946.hdcon(e,tp,eg,ep,ev,re,r,rp) function c26949946.hdcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c26949946.hdcost(e,tp,eg,ep,ev,re,r,rp,chk) function c26949946.hdcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsCode,1,nil,31533705) if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsCode,1,nil,31533705)
......
...@@ -16,7 +16,7 @@ function c27315304.initial_effect(c) ...@@ -16,7 +16,7 @@ function c27315304.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c27315304.thcon(e,tp,eg,ep,ev,re,r,rp) function c27315304.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c27315304.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c27315304.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsAbleToHand() end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsAbleToHand() end
......
...@@ -27,7 +27,7 @@ function c2743001.initial_effect(c) ...@@ -27,7 +27,7 @@ function c2743001.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c2743001.rmcon(e,tp,eg,ep,ev,re,r,rp) function c2743001.rmcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c2743001.rmfilter(c) function c2743001.rmfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToRemove() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToRemove()
...@@ -45,7 +45,7 @@ function c2743001.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c2743001.rmop(e,tp,eg,ep,ev,re,r,rp)
end end
function c2743001.spcon(e,tp,eg,ep,ev,re,r,rp) function c2743001.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetSummonType()==SUMMON_TYPE_SYNCHRO and bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_SYNCHRO) and bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0
end end
function c2743001.spfilter(c,e,tp) function c2743001.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -30,7 +30,7 @@ function c286392.tfilter(c) ...@@ -30,7 +30,7 @@ function c286392.tfilter(c)
return c:IsCode(9742784) or c:IsHasEffect(20932152) return c:IsCode(9742784) or c:IsHasEffect(20932152)
end end
function c286392.thcon(e,tp,eg,ep,ev,re,r,rp) function c286392.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c286392.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c286392.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsAbleToHand() end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and chkc:IsAbleToHand() end
......
...@@ -34,7 +34,7 @@ function c29552709.reftg(e,c) ...@@ -34,7 +34,7 @@ function c29552709.reftg(e,c)
return c:IsSetCard(0x10) return c:IsSetCard(0x10)
end end
function c29552709.condition(e,tp,eg,ep,ev,re,r,rp) function c29552709.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c29552709.filter(c) function c29552709.filter(c)
return c:IsSetCard(0x10) and c:IsAbleToHand() return c:IsSetCard(0x10) and c:IsAbleToHand()
......
...@@ -16,7 +16,7 @@ function c30123142.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c30123142.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated() return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end end
function c30123142.filter(c) function c30123142.filter(c)
return c:IsFaceup() and c:GetSummonType()==SUMMON_TYPE_SYNCHRO and c:GetMaterialCount()~=0 return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_SYNCHRO) and c:GetMaterialCount()~=0
end end
function c30123142.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c30123142.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c30123142.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c30123142.filter(chkc) end
......
...@@ -13,7 +13,7 @@ function c30646525.initial_effect(c) ...@@ -13,7 +13,7 @@ function c30646525.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c30646525.condition(e,tp,eg,ep,ev,re,r,rp) function c30646525.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_RITUAL return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c30646525.filter(c,atk) function c30646525.filter(c,atk)
return c:IsFaceup() and c:IsDefenseBelow(atk) return c:IsFaceup() and c:IsDefenseBelow(atk)
......
...@@ -12,7 +12,7 @@ function c30707994.initial_effect(c) ...@@ -12,7 +12,7 @@ function c30707994.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c30707994.condition(e,tp,eg,ep,ev,re,r,rp) function c30707994.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c30707994.target(e,tp,eg,ep,ev,re,r,rp,chk) function c30707994.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -36,7 +36,7 @@ function c31924889.attackup(e,c) ...@@ -36,7 +36,7 @@ function c31924889.attackup(e,c)
return c:GetCounter(0x1)*1000 return c:GetCounter(0x1)*1000
end end
function c31924889.addcc(e,tp,eg,ep,ev,re,r,rp) function c31924889.addcc(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c31924889.addct(e,tp,eg,ep,ev,re,r,rp,chk) function c31924889.addct(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -28,7 +28,7 @@ function c32588805.initial_effect(c) ...@@ -28,7 +28,7 @@ function c32588805.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c32588805.setcon(e,tp,eg,ep,ev,re,r,rp) function c32588805.setcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
and not Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_ONFIELD,0,1,nil,TYPE_SPELL+TYPE_TRAP) and not Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_ONFIELD,0,1,nil,TYPE_SPELL+TYPE_TRAP)
end end
function c32588805.setfilter1(c) function c32588805.setfilter1(c)
......
...@@ -26,7 +26,7 @@ function c33236860.initial_effect(c) ...@@ -26,7 +26,7 @@ function c33236860.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c33236860.descon(e,tp,eg,ep,ev,re,r,rp) function c33236860.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c33236860.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c33236860.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_BATTLE_PHASE)==0 end if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_BATTLE_PHASE)==0 end
......
...@@ -59,5 +59,5 @@ function c33300669.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,5 +59,5 @@ function c33300669.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c33300669.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) function c33300669.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsLocation(LOCATION_EXTRA) and not c:IsSetCard(0xe0) return c:IsLocation(LOCATION_EXTRA) and not c:IsSetCard(0xe0)
and (e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM or e:GetHandler():GetFlagEffect(33300669)~=0) and (e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) or e:GetHandler():GetFlagEffect(33300669)~=0)
end end
...@@ -14,7 +14,7 @@ function c34109611.initial_effect(c) ...@@ -14,7 +14,7 @@ function c34109611.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c34109611.condition(e,tp,eg,ep,ev,re,r,rp) function c34109611.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c34109611.filter(c) function c34109611.filter(c)
return c:IsFaceup() and c:IsSetCard(0x10) return c:IsFaceup() and c:IsSetCard(0x10)
......
...@@ -33,7 +33,7 @@ function c34143852.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c34143852.efop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c34143852.atkcon(e,tp,eg,ep,ev,re,r,rp) function c34143852.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c34143852.atkop(e,tp,eg,ep,ev,re,r,rp) function c34143852.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -65,5 +65,5 @@ function c34522216.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,5 +65,5 @@ function c34522216.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c34522216.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) function c34522216.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsLocation(LOCATION_EXTRA) and not c:IsSetCard(0xe0) return c:IsLocation(LOCATION_EXTRA) and not c:IsSetCard(0xe0)
and (e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM or e:GetHandler():GetFlagEffect(34522216)~=0) and (e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) or e:GetHandler():GetFlagEffect(34522216)~=0)
end end
...@@ -33,7 +33,7 @@ function c34945480.ovfilter(c) ...@@ -33,7 +33,7 @@ function c34945480.ovfilter(c)
return c:IsFaceup() and c:IsSetCard(0xb6) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsSetCard(0xb6) and c:IsType(TYPE_XYZ)
end end
function c34945480.sumcon(e,tp,eg,ep,ev,re,r,rp) function c34945480.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c34945480.sumsuc(e,tp,eg,ep,ev,re,r,rp) function c34945480.sumsuc(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -63,7 +63,7 @@ function c35952884.valcheck(e,c) ...@@ -63,7 +63,7 @@ function c35952884.valcheck(e,c)
e:GetLabelObject():SetLabel(ct) e:GetLabelObject():SetLabel(ct)
end end
function c35952884.mtcon(e,tp,eg,ep,ev,re,r,rp) function c35952884.mtcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and e:GetLabel()>0 return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and e:GetLabel()>0
end end
function c35952884.mtop(e,tp,eg,ep,ev,re,r,rp) function c35952884.mtop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -71,7 +71,7 @@ function c3606728.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,7 +71,7 @@ function c3606728.efop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c3606728.atkcon(e,tp,eg,ep,ev,re,r,rp) function c3606728.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c3606728.atkfilter(c) function c3606728.atkfilter(c)
return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_SPECIAL) return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_SPECIAL)
......
...@@ -57,7 +57,7 @@ function c36898537.valcheck(e,c) ...@@ -57,7 +57,7 @@ function c36898537.valcheck(e,c)
e:SetLabel(tpe) e:SetLabel(tpe)
end end
function c36898537.immcon(e,tp,eg,ep,ev,re,r,rp) function c36898537.immcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
and bit.band(e:GetLabelObject():GetLabel(),TYPE_NORMAL)~=0 and bit.band(e:GetLabelObject():GetLabel(),TYPE_NORMAL)~=0
end end
function c36898537.immop(e,tp,eg,ep,ev,re,r,rp) function c36898537.immop(e,tp,eg,ep,ev,re,r,rp)
...@@ -77,7 +77,7 @@ function c36898537.efilter(e,te) ...@@ -77,7 +77,7 @@ function c36898537.efilter(e,te)
return te:GetOwner()~=e:GetOwner() return te:GetOwner()~=e:GetOwner()
end end
function c36898537.negcon(e,tp,eg,ep,ev,re,r,rp) function c36898537.negcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
and bit.band(e:GetLabelObject():GetLabel(),TYPE_EFFECT)~=0 and bit.band(e:GetLabelObject():GetLabel(),TYPE_EFFECT)~=0
end end
function c36898537.negfilter(c) function c36898537.negfilter(c)
...@@ -107,7 +107,7 @@ function c36898537.negop(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,7 +107,7 @@ function c36898537.negop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c36898537.ctcon(e,tp,eg,ep,ev,re,r,rp) function c36898537.ctcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
and bit.band(e:GetLabelObject():GetLabel(),TYPE_PENDULUM)~=0 and bit.band(e:GetLabelObject():GetLabel(),TYPE_PENDULUM)~=0
end end
function c36898537.cttg(e,tp,eg,ep,ev,re,r,rp,chk) function c36898537.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -20,7 +20,7 @@ function c36953371.initial_effect(c) ...@@ -20,7 +20,7 @@ function c36953371.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c36953371.descon(e,tp,eg,ep,ev,re,r,rp) function c36953371.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
and not Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_GRAVE,0,1,nil,TYPE_SPELL+TYPE_TRAP) and not Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_GRAVE,0,1,nil,TYPE_SPELL+TYPE_TRAP)
end end
function c36953371.filter(c) function c36953371.filter(c)
......
...@@ -35,7 +35,7 @@ function c37675907.initial_effect(c) ...@@ -35,7 +35,7 @@ function c37675907.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c37675907.regcon(e,tp,eg,ep,ev,re,r,rp) function c37675907.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c37675907.regop(e,tp,eg,ep,ev,re,r,rp) function c37675907.regop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -25,7 +25,7 @@ function c37910722.initial_effect(c) ...@@ -25,7 +25,7 @@ function c37910722.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c37910722.atkcon(e,tp,eg,ep,ev,re,r,rp) function c37910722.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c37910722.atkop(e,tp,eg,ep,ev,re,r,rp) function c37910722.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -53,7 +53,7 @@ function c37910722.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,7 +53,7 @@ function c37910722.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local mg=c:GetMaterial() local mg=c:GetMaterial()
local ct=mg:GetCount() local ct=mg:GetCount()
if chk==0 then return c:GetSummonType()==SUMMON_TYPE_SYNCHRO if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO)
and not Duel.IsPlayerAffectedByEffect(tp,59822133) and not Duel.IsPlayerAffectedByEffect(tp,59822133)
and ct>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>=ct and ct>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>=ct
and mg:FilterCount(c37910722.spfilter,nil,e,tp,c)==ct end and mg:FilterCount(c37910722.spfilter,nil,e,tp,c)==ct end
......
...@@ -48,7 +48,7 @@ function c38026562.initial_effect(c) ...@@ -48,7 +48,7 @@ function c38026562.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c38026562.spcon(e,tp,eg,ep,ev,re,r,rp) function c38026562.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c38026562.spfilter(c,e,tp) function c38026562.spfilter(c,e,tp)
return c:IsType(TYPE_DUAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_DUAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -64,7 +64,7 @@ function c38331564.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function c38331564.effop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c38331564.descon(e,tp,eg,ep,ev,re,r,rp) function c38331564.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c38331564.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c38331564.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc~=e:GetHandler() end if chkc then return chkc:IsOnField() and chkc~=e:GetHandler() end
......
...@@ -14,7 +14,7 @@ function c38354937.initial_effect(c) ...@@ -14,7 +14,7 @@ function c38354937.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c38354937.ctcon(e,tp,eg,ep,ev,re,r,rp) function c38354937.ctcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c38354937.filter(c) function c38354937.filter(c)
return c:IsFaceup() and c:GetLevel()>0 return c:IsFaceup() and c:GetLevel()>0
......
...@@ -27,7 +27,7 @@ function c39024589.initial_effect(c) ...@@ -27,7 +27,7 @@ function c39024589.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c39024589.cfilter(c,tp) function c39024589.cfilter(c,tp)
return c:GetSummonPlayer()==tp and c:GetSummonType()==SUMMON_TYPE_PENDULUM return c:GetSummonPlayer()==tp and c:IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c39024589.thcon(e,tp,eg,ep,ev,re,r,rp) function c39024589.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c39024589.cfilter,1,nil,tp) return eg:IsExists(c39024589.cfilter,1,nil,tp)
......
...@@ -59,7 +59,7 @@ function c39153655.cfilter(c) ...@@ -59,7 +59,7 @@ function c39153655.cfilter(c)
end end
function c39153655.thcon(e,tp,eg,ep,ev,re,r,rp) function c39153655.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:GetSummonType()==SUMMON_TYPE_PENDULUM and c:IsPreviousLocation(LOCATION_HAND) return c:IsSummonType(SUMMON_TYPE_PENDULUM) and c:IsPreviousLocation(LOCATION_HAND)
and Duel.IsExistingMatchingCard(c39153655.cfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(c39153655.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c39153655.thfilter(c) function c39153655.thfilter(c)
......
...@@ -38,7 +38,7 @@ function c39272762.valcheck(e,c) ...@@ -38,7 +38,7 @@ function c39272762.valcheck(e,c)
end end
end end
function c39272762.negcon(e,tp,eg,ep,ev,re,r,rp) function c39272762.negcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ and e:GetLabel()==1 return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) and e:GetLabel()==1
end end
function c39272762.negop(e,tp,eg,ep,ev,re,r,rp) function c39272762.negop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -23,7 +23,7 @@ function c39402797.initial_effect(c) ...@@ -23,7 +23,7 @@ function c39402797.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c39402797.descon(e,tp,eg,ep,ev,re,r,rp) function c39402797.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c39402797.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c39402797.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) end if chkc then return chkc:IsOnField() and chkc:IsControler(tp) end
......
...@@ -14,7 +14,7 @@ function c39765115.initial_effect(c) ...@@ -14,7 +14,7 @@ function c39765115.initial_effect(c)
end end
function c39765115.condition(e,tp,eg,ep,ev,re,r,rp) function c39765115.condition(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return tc:GetSummonType()==SUMMON_TYPE_XYZ and tc:IsControler(1-tp) return tc:IsSummonType(SUMMON_TYPE_XYZ) and tc:IsControler(1-tp)
end end
function c39765115.cfilter(c) function c39765115.cfilter(c)
return c:IsRace(RACE_FISH) and c:IsAbleToRemoveAsCost() return c:IsRace(RACE_FISH) and c:IsAbleToRemoveAsCost()
......
...@@ -55,7 +55,7 @@ function c39853199.desop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c39853199.desop1(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c39853199.descon2(e,tp,eg,ep,ev,re,r,rp) function c39853199.descon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c39853199.destg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c39853199.destg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) end
......
...@@ -48,7 +48,7 @@ function c39964797.scop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c39964797.scop(e,tp,eg,ep,ev,re,r,rp)
end end
function c39964797.spcon(e,tp,eg,ep,ev,re,r,rp) function c39964797.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetSummonType()==SUMMON_TYPE_SYNCHRO and bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_SYNCHRO) and bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0
end end
function c39964797.spfilter(c,e,tp) function c39964797.spfilter(c,e,tp)
return c:IsSetCard(0xea) and not c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xea) and not c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -26,7 +26,7 @@ function c41309158.initial_effect(c) ...@@ -26,7 +26,7 @@ function c41309158.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c41309158.poscon(e,tp,eg,ep,ev,re,r,rp) function c41309158.poscon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c41309158.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c41309158.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsDefensePos() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsDefensePos() end
......
...@@ -29,7 +29,7 @@ function c41517789.initial_effect(c) ...@@ -29,7 +29,7 @@ function c41517789.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c41517789.sumsuc(e,tp,eg,ep,ev,re,r,rp) function c41517789.sumsuc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetSummonType()~=SUMMON_TYPE_SYNCHRO then return end if not e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) then return end
Duel.SetChainLimitTillChainEnd(aux.FALSE) Duel.SetChainLimitTillChainEnd(aux.FALSE)
end end
function c41517789.atkop(e,tp,eg,ep,ev,re,r,rp) function c41517789.atkop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -12,7 +12,7 @@ function c41705642.initial_effect(c) ...@@ -12,7 +12,7 @@ function c41705642.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c41705642.spcon(e,tp,eg,ep,ev,re,r,rp) function c41705642.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c41705642.filter(c,e,tp) function c41705642.filter(c,e,tp)
return c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -47,7 +47,7 @@ function c42566602.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c42566602.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c42566602.drcon(e,tp,eg,ep,ev,re,r,rp) function c42566602.drcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetSummonType()==SUMMON_TYPE_SYNCHRO return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c42566602.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c42566602.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
......
...@@ -76,7 +76,7 @@ function c42589641.xyzfilter(c) ...@@ -76,7 +76,7 @@ function c42589641.xyzfilter(c)
return Duel.GetFlagEffect(c:GetControler(),42589641)==0 and c:IsSetCard(0x9c) return Duel.GetFlagEffect(c:GetControler(),42589641)==0 and c:IsSetCard(0x9c)
end end
function c42589641.regcon(e,tp,eg,ep,ev,re,r,rp) function c42589641.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c42589641.regop(e,tp,eg,ep,ev,re,r,rp) function c42589641.regop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
...@@ -95,7 +95,7 @@ function c42589641.splimit(e,se,sp,st,spos,tgp) ...@@ -95,7 +95,7 @@ function c42589641.splimit(e,se,sp,st,spos,tgp)
return bit.band(st,SUMMON_TYPE_XYZ)~=SUMMON_TYPE_XYZ or Duel.GetFlagEffect(tgp,42589641)==0 return bit.band(st,SUMMON_TYPE_XYZ)~=SUMMON_TYPE_XYZ or Duel.GetFlagEffect(tgp,42589641)==0
end end
function c42589641.thcon(e,tp,eg,ep,ev,re,r,rp) function c42589641.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c42589641.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c42589641.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -27,7 +27,7 @@ function c43241495.initial_effect(c) ...@@ -27,7 +27,7 @@ function c43241495.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c43241495.cfilter(c,tp) function c43241495.cfilter(c,tp)
return c:GetSummonPlayer()==tp and c:GetSummonType()==SUMMON_TYPE_PENDULUM return c:GetSummonPlayer()==tp and c:IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c43241495.thcon(e,tp,eg,ep,ev,re,r,rp) function c43241495.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c43241495.cfilter,1,nil,tp) return eg:IsExists(c43241495.cfilter,1,nil,tp)
......
...@@ -27,7 +27,7 @@ function c44035031.initial_effect(c) ...@@ -27,7 +27,7 @@ function c44035031.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c44035031.atkcon(e,tp,eg,ep,ev,re,r,rp) function c44035031.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c44035031.atkop(e,tp,eg,ep,ev,re,r,rp) function c44035031.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -29,7 +29,7 @@ function c44186624.initial_effect(c) ...@@ -29,7 +29,7 @@ function c44186624.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c44186624.effcon(e,tp,eg,ep,ev,re,r,rp) function c44186624.effcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c44186624.distg(e,tp,eg,ep,ev,re,r,rp,chk) function c44186624.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_ONFIELD,1,nil) end
......
...@@ -28,7 +28,7 @@ function c44505297.initial_effect(c) ...@@ -28,7 +28,7 @@ function c44505297.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c44505297.eqcon(e,tp,eg,ep,ev,re,r,rp) function c44505297.eqcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c44505297.eqfilter(c) function c44505297.eqfilter(c)
return c:IsType(TYPE_MONSTER) and not c:IsForbidden() return c:IsType(TYPE_MONSTER) and not c:IsForbidden()
......
...@@ -70,7 +70,7 @@ function c45184165.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,7 +70,7 @@ function c45184165.efop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c45184165.atkcon(e,tp,eg,ep,ev,re,r,rp) function c45184165.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c45184165.atkop(e,tp,eg,ep,ev,re,r,rp) function c45184165.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -42,7 +42,7 @@ function c45349196.aclimit(e,re,tp) ...@@ -42,7 +42,7 @@ function c45349196.aclimit(e,re,tp)
end end
function c45349196.damcon(e,tp,eg,ep,ev,re,r,rp) function c45349196.damcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:GetSummonType()==SUMMON_TYPE_FUSION and c:GetBattledGroupCount()>0 return c:IsSummonType(SUMMON_TYPE_FUSION) and c:GetBattledGroupCount()>0
end end
function c45349196.filter(c) function c45349196.filter(c)
return c:IsSetCard(0x3b) and c:IsType(TYPE_NORMAL) and c:IsAbleToDeck() return c:IsSetCard(0x3b) and c:IsType(TYPE_NORMAL) and c:IsAbleToDeck()
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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