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()
......
...@@ -57,7 +57,7 @@ function c45627618.pcop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function c45627618.pcop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c45627618.descon(e,tp,eg,ep,ev,re,r,rp) function c45627618.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 c45627618.desfilter(c) function c45627618.desfilter(c)
return c:IsFaceup() and c:IsLevelBelow(7) return c:IsFaceup() and c:IsLevelBelow(7)
......
...@@ -13,7 +13,7 @@ function c46132282.initial_effect(c) ...@@ -13,7 +13,7 @@ function c46132282.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c46132282.effcon(e,tp,eg,ep,ev,re,r,rp) function c46132282.effcon(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 c46132282.effop(e,tp,eg,ep,ev,re,r,rp) function c46132282.effop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -25,7 +25,7 @@ function c46759931.initial_effect(c) ...@@ -25,7 +25,7 @@ function c46759931.initial_effect(c)
end end
c46759931.material_setcode=0x8 c46759931.material_setcode=0x8
function c46759931.regcon(e,tp,eg,ep,ev,re,r,rp) function c46759931.regcon(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 c46759931.regop(e,tp,eg,ep,ev,re,r,rp) function c46759931.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -37,5 +37,5 @@ function c46759931.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,5 +37,5 @@ function c46759931.regop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c46759931.atkcon(e) function c46759931.atkcon(e)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
...@@ -22,7 +22,7 @@ function c47075569.initial_effect(c) ...@@ -22,7 +22,7 @@ function c47075569.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c47075569.cfilter(c,tp) function c47075569.cfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x9f) and c:IsControler(tp) and c:GetSummonType()==SUMMON_TYPE_PENDULUM return c:IsFaceup() and c:IsSetCard(0x9f) and c:IsControler(tp) and c:IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c47075569.atkcon(e,tp,eg,ep,ev,re,r,rp) function c47075569.atkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c47075569.cfilter,1,nil,tp) return eg:IsExists(c47075569.cfilter,1,nil,tp)
......
...@@ -13,7 +13,7 @@ function c4929256.initial_effect(c) ...@@ -13,7 +13,7 @@ function c4929256.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c4929256.condition(e,tp,eg,ep,ev,re,r,rp) function c4929256.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 c4929256.filter(c) function c4929256.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
...@@ -28,7 +28,7 @@ function c50091196.initial_effect(c) ...@@ -28,7 +28,7 @@ function c50091196.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c50091196.drcon(e,tp,eg,ep,ev,re,r,rp) function c50091196.drcon(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 c50091196.drtarg(e,tp,eg,ep,ev,re,r,rp,chk) function c50091196.drtarg(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
......
...@@ -15,7 +15,7 @@ function c50702124.initial_effect(c) ...@@ -15,7 +15,7 @@ function c50702124.initial_effect(c)
end end
function c50702124.spcon(e,tp,eg,ep,ev,re,r,rp) function c50702124.spcon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return eg:GetCount()==1 and tc:IsControler(tp) and tc:GetSummonType()==SUMMON_TYPE_SYNCHRO return eg:GetCount()==1 and tc:IsControler(tp) and tc:IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c50702124.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c50702124.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
......
...@@ -13,7 +13,7 @@ function c50951359.initial_effect(c) ...@@ -13,7 +13,7 @@ function c50951359.initial_effect(c)
end end
function c50951359.condition(e,tp,eg,ep,ev,re,r,rp) function c50951359.condition(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return tc:GetSummonType()==SUMMON_TYPE_SYNCHRO and ep~=tp return tc:IsSummonType(SUMMON_TYPE_SYNCHRO) and ep~=tp
end end
function c50951359.filter(c,e,tp,mg) function c50951359.filter(c,e,tp,mg)
return mg:IsContains(c) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return mg:IsContains(c) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -59,7 +59,7 @@ function c52068432.negop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,7 @@ function c52068432.negop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c52068432.remcon(e,tp,eg,ep,ev,re,r,rp) function c52068432.remcon(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 c52068432.remtg(e,tp,eg,ep,ev,re,r,rp,chk) function c52068432.remtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_HAND,1,nil) if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_HAND,1,nil)
......
...@@ -37,7 +37,7 @@ function c52145422.valcheck(e,c) ...@@ -37,7 +37,7 @@ function c52145422.valcheck(e,c)
e:GetLabelObject():SetLabel(ct) e:GetLabelObject():SetLabel(ct)
end end
function c52145422.descon(e,tp,eg,ep,ev,re,r,rp) function c52145422.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 c52145422.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c52145422.destg(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
......
...@@ -145,10 +145,10 @@ function c52653092.xyzop(e,tp,eg,ep,ev,re,r,rp,c,og,min,max) ...@@ -145,10 +145,10 @@ function c52653092.xyzop(e,tp,eg,ep,ev,re,r,rp,c,og,min,max)
end end
end end
function c52653092.effcon(e) function c52653092.effcon(e)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c52653092.effcon2(e,tp,eg,ep,ev,re,r,rp) function c52653092.effcon2(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 c52653092.spsumsuc(e,tp,eg,ep,ev,re,r,rp) function c52653092.spsumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.SetChainLimitTillChainEnd(c52653092.chlimit) Duel.SetChainLimitTillChainEnd(c52653092.chlimit)
......
...@@ -25,7 +25,7 @@ function c53090623.initial_effect(c) ...@@ -25,7 +25,7 @@ function c53090623.initial_effect(c)
end end
function c53090623.condition(e,tp,eg,ep,ev,re,r,rp) function c53090623.condition(e,tp,eg,ep,ev,re,r,rp)
local c=eg:GetFirst() local c=eg:GetFirst()
return eg:GetCount()==1 and c:IsControler(tp) and c:GetSummonType()==SUMMON_TYPE_XYZ return eg:GetCount()==1 and c:IsControler(tp) and c:IsSummonType(SUMMON_TYPE_XYZ)
end end
function c53090623.target(e,tp,eg,ep,ev,re,r,rp,chk) function c53090623.target(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
......
...@@ -51,7 +51,7 @@ function c53389254.valcheck(e,c) ...@@ -51,7 +51,7 @@ function c53389254.valcheck(e,c)
end end
end end
function c53389254.tncon(e,tp,eg,ep,ev,re,r,rp) function c53389254.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 c53389254.tnop(e,tp,eg,ep,ev,re,r,rp) function c53389254.tnop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -41,7 +41,7 @@ function c55863245.synfilter2(c,syncard,tuner,f,g,lv,minc,maxc) ...@@ -41,7 +41,7 @@ function c55863245.synfilter2(c,syncard,tuner,f,g,lv,minc,maxc)
else return false end else return false end
end end
function c55863245.syncon(e) function c55863245.syncon(e)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c55863245.syntg(e,syncard,f,minc,maxc) function c55863245.syntg(e,syncard,f,minc,maxc)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -40,7 +40,7 @@ function c5614808.initial_effect(c) ...@@ -40,7 +40,7 @@ function c5614808.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c5614808.descon(e,tp,eg,ep,ev,re,r,rp) function c5614808.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 c5614808.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c5614808.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAttackPos,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAttackPos,tp,0,LOCATION_MZONE,1,nil) end
......
...@@ -10,7 +10,7 @@ function c56784842.initial_effect(c) ...@@ -10,7 +10,7 @@ function c56784842.initial_effect(c)
end end
function c56784842.regop(e,tp,eg,ep,ev,re,r,rp) function c56784842.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:GetSummonType()~=SUMMON_TYPE_ADVANCE then return end if not c:IsSummonType(SUMMON_TYPE_ADVANCE) then return end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
...@@ -14,7 +14,7 @@ function c56804361.initial_effect(c) ...@@ -14,7 +14,7 @@ function c56804361.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c56804361.condition(e,tp,eg,ep,ev,re,r,rp) function c56804361.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 c56804361.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c56804361.target(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
......
...@@ -31,7 +31,7 @@ function c57777714.splimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -31,7 +31,7 @@ function c57777714.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 c57777714.condition(e,tp,eg,ep,ev,re,r,rp) function c57777714.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 c57777714.filter(c,e,tp) function c57777714.filter(c,e,tp)
return (c:IsSetCard(0xb5) or c:IsSetCard(0xc4)) and not c:IsCode(57777714) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return (c:IsSetCard(0xb5) or c:IsSetCard(0xc4)) and not c:IsCode(57777714) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -38,7 +38,7 @@ function c57996334.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -38,7 +38,7 @@ function c57996334.spop(e,tp,eg,ep,ev,re,r,rp,c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c57996334.sumcon(e,tp,eg,ep,ev,re,r,rp) function c57996334.sumcon(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 c57996334.filter(c,e,tp) function c57996334.filter(c,e,tp)
return c:IsSetCard(0x82) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsSetCard(0x82) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
......
...@@ -32,7 +32,7 @@ function c58016954.splimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -32,7 +32,7 @@ function c58016954.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 c58016954.condition1(e,tp,eg,ep,ev,re,r,rp) function c58016954.condition1(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 c58016954.cfilter(c) function c58016954.cfilter(c)
return c:IsSetCard(0xc4) return c:IsSetCard(0xc4)
......
...@@ -106,7 +106,7 @@ function c58074177.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -106,7 +106,7 @@ function c58074177.disop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c58074177.descon(e,tp,eg,ep,ev,re,r,rp) function c58074177.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)
end end
function c58074177.desfilter(c) function c58074177.desfilter(c)
......
...@@ -53,7 +53,7 @@ function c58494728.valcheck(e,c) ...@@ -53,7 +53,7 @@ function c58494728.valcheck(e,c)
end end
end end
function c58494728.condition(e,tp,eg,ep,ev,re,r,rp) function c58494728.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 c58494728.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c58494728.target(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
......
...@@ -12,7 +12,7 @@ function c58628539.initial_effect(c) ...@@ -12,7 +12,7 @@ function c58628539.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c58628539.condition(e,tp,eg,ep,ev,re,r,rp) function c58628539.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:GetCount()==1 and eg:GetFirst():GetSummonType()==SUMMON_TYPE_XYZ and eg:GetFirst():IsControler(tp) return eg:GetCount()==1 and eg:GetFirst():IsSummonType(SUMMON_TYPE_XYZ) and eg:GetFirst():IsControler(tp)
end end
function c58628539.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c58628539.target(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
......
...@@ -34,7 +34,7 @@ function c58820923.ovfilter(c) ...@@ -34,7 +34,7 @@ function c58820923.ovfilter(c)
return c:IsFaceup() and c:IsSetCard(0x107b) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsSetCard(0x107b) and c:IsType(TYPE_XYZ)
end end
function c58820923.rmcon(e,tp,eg,ep,ev,re,r,rp) function c58820923.rmcon(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 c58820923.cfilter(c) function c58820923.cfilter(c)
return c:IsRace(RACE_DRAGON) and c:IsAbleToGraveAsCost() return c:IsRace(RACE_DRAGON) and c:IsAbleToGraveAsCost()
......
...@@ -32,7 +32,7 @@ function c58990362.splimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -32,7 +32,7 @@ function c58990362.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 c58990362.condition1(e,tp,eg,ep,ev,re,r,rp) function c58990362.condition1(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 c58990362.condition2(e,tp,eg,ep,ev,re,r,rp) function c58990362.condition2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -27,7 +27,7 @@ function c59123194.initial_effect(c) ...@@ -27,7 +27,7 @@ function c59123194.initial_effect(c)
end end
function c59123194.thcon(e,tp,eg,ep,ev,re,r,rp) function c59123194.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:GetSummonType()==SUMMON_TYPE_SYNCHRO and c:GetMaterial():IsExists(c59123194.pmfilter,1,nil) return c:IsSummonType(SUMMON_TYPE_SYNCHRO) and c:GetMaterial():IsExists(c59123194.pmfilter,1,nil)
end end
function c59123194.thfilter(c) function c59123194.thfilter(c)
return c:IsType(TYPE_SPELL) and c:IsAbleToHand() return c:IsType(TYPE_SPELL) and c:IsAbleToHand()
......
...@@ -13,7 +13,7 @@ function c60229110.initial_effect(c) ...@@ -13,7 +13,7 @@ function c60229110.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c60229110.condition(e,tp,eg,ep,ev,re,r,rp) function c60229110.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 c60229110.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c60229110.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsFacedown() end if chkc then return chkc:IsOnField() and chkc:IsFacedown() end
......
...@@ -15,7 +15,7 @@ function c60634565.initial_effect(c) ...@@ -15,7 +15,7 @@ function c60634565.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c60634565.descon(e,tp,eg,ep,ev,re,r,rp) function c60634565.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 c60634565.desfilter(c) function c60634565.desfilter(c)
return c:IsFaceup() and c:GetAttack()==0 return c:IsFaceup() and c:GetAttack()==0
......
...@@ -18,7 +18,7 @@ function c61032879.initial_effect(c) ...@@ -18,7 +18,7 @@ function c61032879.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c61032879.condition(e,tp,eg,ep,ev,re,r,rp) function c61032879.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:GetFirst():GetSummonType()==SUMMON_TYPE_SYNCHRO and eg:GetFirst():IsControler(tp) return eg:GetFirst():IsSummonType(SUMMON_TYPE_SYNCHRO) and eg:GetFirst():IsControler(tp)
end end
function c61032879.target(e,tp,eg,ep,ev,re,r,rp,chk) function c61032879.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -24,7 +24,7 @@ function c62007535.valcheck(e,c) ...@@ -24,7 +24,7 @@ function c62007535.valcheck(e,c)
end end
end end
function c62007535.regcon(e,tp,eg,ep,ev,re,r,rp) function c62007535.regcon(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 c62007535.regop(e,tp,eg,ep,ev,re,r,rp) function c62007535.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -58,7 +58,7 @@ function c6283472.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function c6283472.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c6283472.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) function c6283472.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(6283472)~=0) and (e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) or e:GetHandler():GetFlagEffect(6283472)~=0)
end end
function c6283472.cfilter(c) function c6283472.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0xe0) return c:IsFaceup() and c:IsSetCard(0xe0)
......
...@@ -29,7 +29,7 @@ function c63422098.val(e,c) ...@@ -29,7 +29,7 @@ function c63422098.val(e,c)
end end
function c63422098.regop(e,tp,eg,ep,ev,re,r,rp) function c63422098.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:GetSummonType()==SUMMON_TYPE_SYNCHRO then if c:IsSummonType(SUMMON_TYPE_SYNCHRO) then
local ct=c:GetMaterialCount()-1 local ct=c:GetMaterialCount()-1
c:RegisterFlagEffect(63422098,RESET_EVENT+0x1fe0000,0,0,ct*200) c:RegisterFlagEffect(63422098,RESET_EVENT+0x1fe0000,0,0,ct*200)
end end
......
...@@ -119,7 +119,7 @@ function c64496451.immcon(e) ...@@ -119,7 +119,7 @@ function c64496451.immcon(e)
return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL) return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c64496451.spcon(e,tp,eg,ep,ev,re,r,rp) function c64496451.spcon(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 c64496451.spfilter(c,e,tp) function c64496451.spfilter(c,e,tp)
return c:IsSetCard(0xaa) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xaa) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -13,7 +13,7 @@ function c65196094.initial_effect(c) ...@@ -13,7 +13,7 @@ function c65196094.initial_effect(c)
Duel.AddCustomActivityCounter(65196094,ACTIVITY_SPSUMMON,c65196094.counterfilter) Duel.AddCustomActivityCounter(65196094,ACTIVITY_SPSUMMON,c65196094.counterfilter)
end end
function c65196094.counterfilter(c) function c65196094.counterfilter(c)
return c:GetSummonType()~=SUMMON_TYPE_SYNCHRO return not c:IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c65196094.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c65196094.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
......
...@@ -22,7 +22,7 @@ function c65961683.initial_effect(c) ...@@ -22,7 +22,7 @@ function c65961683.initial_effect(c)
end end
function c65961683.valop(e,tp,eg,ep,ev,re,r,rp) function c65961683.valop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:GetSummonType()~=SUMMON_TYPE_SYNCHRO then return end if not c:IsSummonType(SUMMON_TYPE_SYNCHRO) then return end
local g=c:GetMaterial() local g=c:GetMaterial()
local tc=g:GetFirst() local tc=g:GetFirst()
local atk=0 local atk=0
......
...@@ -12,7 +12,7 @@ function c66661678.initial_effect(c) ...@@ -12,7 +12,7 @@ function c66661678.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c66661678.condition(e,tp,eg,ep,ev,re,r,rp) function c66661678.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 c66661678.target(e,tp,eg,ep,ev,re,r,rp,chk) function c66661678.target(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 c7080743.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c7080743.efop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c7080743.atkcon(e,tp,eg,ep,ev,re,r,rp) function c7080743.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 c7080743.atkop(e,tp,eg,ep,ev,re,r,rp) function c7080743.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -65,5 +65,5 @@ function c70917315.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,5 +65,5 @@ function c70917315.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c70917315.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) function c70917315.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(70917315)~=0) and (e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) or e:GetHandler():GetFlagEffect(70917315)~=0)
end end
...@@ -55,7 +55,7 @@ function c7305060.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c7305060.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c7305060.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) function c7305060.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(7305060)~=0) and (e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) or e:GetHandler():GetFlagEffect(7305060)~=0)
end end
function c7305060.cfilter(c) function c7305060.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0xe0) return c:IsFaceup() and c:IsSetCard(0xe0)
......
...@@ -27,7 +27,7 @@ function c73333463.valcheck(e,c) ...@@ -27,7 +27,7 @@ function c73333463.valcheck(e,c)
end end
end end
function c73333463.condition(e,tp,eg,ep,ev,re,r,rp) function c73333463.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 c73333463.filter(c) function c73333463.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToRemove() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToRemove()
......
...@@ -40,6 +40,6 @@ end ...@@ -40,6 +40,6 @@ end
function c73632127.actcon(e) function c73632127.actcon(e)
local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(EVENT_SPSUMMON_SUCCESS,true) local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(EVENT_SPSUMMON_SUCCESS,true)
if res then if res then
return teg:GetCount()==1 and teg:GetFirst():GetSummonType()==SUMMON_TYPE_XYZ return teg:GetCount()==1 and teg:GetFirst():IsSummonType(SUMMON_TYPE_XYZ)
end end
end end
...@@ -66,7 +66,7 @@ function c73941492.atkval(e,c) ...@@ -66,7 +66,7 @@ function c73941492.atkval(e,c)
end end
function c73941492.spcon(e,tp,eg,ep,ev,re,r,rp) function c73941492.spcon(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)
end end
function c73941492.spfilter(c,e,tp) function c73941492.spfilter(c,e,tp)
return c:IsSetCard(0x98) and c:IsType(TYPE_PENDULUM) and not c:IsCode(73941492) return c:IsSetCard(0x98) and c:IsType(TYPE_PENDULUM) and not c:IsCode(73941492)
......
...@@ -22,7 +22,7 @@ function c74168099.initial_effect(c) ...@@ -22,7 +22,7 @@ function c74168099.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c74168099.spcon(e,tp,eg,ep,ev,re,r,rp) function c74168099.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 c74168099.spfilter(c,e,tp) function c74168099.spfilter(c,e,tp)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:GetLevel()==3 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsAttribute(ATTRIBUTE_FIRE) and c:GetLevel()==3 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -20,7 +20,7 @@ function c74860293.tfilter(c) ...@@ -20,7 +20,7 @@ function c74860293.tfilter(c)
return c:IsCode(63977008) or c:IsHasEffect(20932152) return c:IsCode(63977008) or c:IsHasEffect(20932152)
end end
function c74860293.con(e,tp,eg,ep,ev,re,r,rp) function c74860293.con(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 c74860293.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c74860293.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() end
......
...@@ -42,7 +42,7 @@ function c75574498.initial_effect(c) ...@@ -42,7 +42,7 @@ function c75574498.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c75574498.spcon(e,tp,eg,ep,ev,re,r,rp) function c75574498.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 c75574498.spfilter1(c,e,tp) function c75574498.spfilter1(c,e,tp)
return c:IsCode(81587028) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(81587028) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -22,7 +22,7 @@ function c75988594.initial_effect(c) ...@@ -22,7 +22,7 @@ function c75988594.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c75988594.thcon(e,tp,eg,ep,ev,re,r,rp) function c75988594.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 c75988594.thfilter(c) function c75988594.thfilter(c)
return c:IsRace(RACE_MACHINE) and c:IsAbleToHand() return c:IsRace(RACE_MACHINE) and c:IsAbleToHand()
......
...@@ -27,7 +27,7 @@ function c76359406.initial_effect(c) ...@@ -27,7 +27,7 @@ function c76359406.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c76359406.poscon(e,tp,eg,ep,ev,re,r,rp) function c76359406.poscon(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 c76359406.posfilter(c) function c76359406.posfilter(c)
return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_SPECIAL) return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_SPECIAL)
...@@ -45,7 +45,7 @@ function c76359406.posop(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,7 +45,7 @@ function c76359406.posop(e,tp,eg,ep,ev,re,r,rp)
end end
function c76359406.spcon(e,tp,eg,ep,ev,re,r,rp) function c76359406.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 c76359406.spfilter(c,e,tp) function c76359406.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)
......
...@@ -22,7 +22,7 @@ function c76547525.cfilter(c,atk) ...@@ -22,7 +22,7 @@ function c76547525.cfilter(c,atk)
return c:IsFaceup() and c:GetAttack()>atk return c:IsFaceup() and c:GetAttack()>atk
end end
function c76547525.descon(e,tp,eg,ep,ev,re,r,rp) function c76547525.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
and Duel.IsExistingMatchingCard(c76547525.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e:GetHandler():GetAttack()) and Duel.IsExistingMatchingCard(c76547525.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e:GetHandler():GetAttack())
end end
function c76547525.desfilter(c) function c76547525.desfilter(c)
......
...@@ -18,7 +18,7 @@ function c77098449.initial_effect(c) ...@@ -18,7 +18,7 @@ function c77098449.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c77098449.condition(e,tp,eg,ep,ev,re,r,rp) function c77098449.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:GetFirst():GetSummonType()==SUMMON_TYPE_XYZ and eg:GetFirst():IsControler(tp) return eg:GetFirst():IsSummonType(SUMMON_TYPE_XYZ) and eg:GetFirst():IsControler(tp)
end end
function c77098449.target(e,tp,eg,ep,ev,re,r,rp,chk) function c77098449.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -55,7 +55,7 @@ function c79794767.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c79794767.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c79794767.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) function c79794767.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(79794767)~=0) and (e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) or e:GetHandler():GetFlagEffect(79794767)~=0)
end end
function c79794767.filter(c) function c79794767.filter(c)
return c:IsFaceup() and c:IsSetCard(0xe0) return c:IsFaceup() and c:IsSetCard(0xe0)
......
...@@ -37,7 +37,7 @@ function c79985120.xyzop(e,tp,chk) ...@@ -37,7 +37,7 @@ function c79985120.xyzop(e,tp,chk)
Duel.DiscardHand(tp,c79985120.cfilter,1,1,REASON_COST+REASON_DISCARD,nil) Duel.DiscardHand(tp,c79985120.cfilter,1,1,REASON_COST+REASON_DISCARD,nil)
end end
function c79985120.descon(e,tp,eg,ep,ev,re,r,rp) function c79985120.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 c79985120.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c79985120.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) end
......
...@@ -45,7 +45,7 @@ end ...@@ -45,7 +45,7 @@ end
function c80335817.atkcon(e,tp,eg,ep,ev,re,r,rp) function c80335817.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return eg:GetCount()==1 and eg:GetFirst()==c return eg:GetCount()==1 and eg:GetFirst()==c
and c:GetSummonType()==SUMMON_TYPE_PENDULUM and c:IsPreviousLocation(LOCATION_HAND) and c:IsSummonType(SUMMON_TYPE_PENDULUM) and c:IsPreviousLocation(LOCATION_HAND)
end end
function c80335817.atkop(e,tp,eg,ep,ev,re,r,rp) function c80335817.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -55,7 +55,7 @@ function c80773359.valcheck(e,c) ...@@ -55,7 +55,7 @@ function c80773359.valcheck(e,c)
end end
end end
function c80773359.tncon(e,tp,eg,ep,ev,re,r,rp) function c80773359.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 c80773359.tnop(e,tp,eg,ep,ev,re,r,rp) function c80773359.tnop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -96,5 +96,5 @@ function c80773359.condtion(e) ...@@ -96,5 +96,5 @@ function c80773359.condtion(e)
local mg=c:GetMaterial() local mg=c:GetMaterial()
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
return (ph==PHASE_DAMAGE or ph==PHASE_DAMAGE_CAL) and Duel.GetAttacker()==c return (ph==PHASE_DAMAGE or ph==PHASE_DAMAGE_CAL) and Duel.GetAttacker()==c
and c:GetSummonType()==SUMMON_TYPE_SYNCHRO and mg:GetCount()>0 and not mg:IsExists(c80773359.mfilter,1,nil) and c:IsSummonType(SUMMON_TYPE_SYNCHRO) and mg:GetCount()>0 and not mg:IsExists(c80773359.mfilter,1,nil)
end end
...@@ -77,7 +77,7 @@ function c80896940.initial_effect(c) ...@@ -77,7 +77,7 @@ function c80896940.initial_effect(c)
c:RegisterEffect(e7) c:RegisterEffect(e7)
end end
function c80896940.matfilter1(c,syncard) function c80896940.matfilter1(c,syncard)
return c:IsType(TYPE_PENDULUM) and c:GetSummonType()==SUMMON_TYPE_PENDULUM and c:IsNotTuner() and c:IsFaceup() and c:IsCanBeSynchroMaterial(syncard) return c:IsType(TYPE_PENDULUM) and c:IsSummonType(SUMMON_TYPE_PENDULUM) and c:IsNotTuner() and c:IsFaceup() and c:IsCanBeSynchroMaterial(syncard)
and Duel.IsExistingMatchingCard(c80896940.matfilter2,0,LOCATION_MZONE,LOCATION_MZONE,1,c,syncard) and Duel.IsExistingMatchingCard(c80896940.matfilter2,0,LOCATION_MZONE,LOCATION_MZONE,1,c,syncard)
end end
function c80896940.matfilter2(c,syncard) function c80896940.matfilter2(c,syncard)
...@@ -209,7 +209,7 @@ function c80896940.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -209,7 +209,7 @@ function c80896940.atkop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c80896940.thcon(e,tp,eg,ep,ev,re,r,rp) function c80896940.thcon(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 c80896940.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c80896940.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and chkc:IsAbleToHand() end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and chkc:IsAbleToHand() end
...@@ -225,7 +225,7 @@ function c80896940.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -225,7 +225,7 @@ function c80896940.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c80896940.mfilter(c) function c80896940.mfilter(c)
return c:IsType(TYPE_PENDULUM) and c:GetSummonType()==SUMMON_TYPE_PENDULUM return c:IsType(TYPE_PENDULUM) and c:IsSummonType(SUMMON_TYPE_PENDULUM)
and (c:IsType(TYPE_TUNER) or c:GetFlagEffect(80896940)~=0) and (c:IsType(TYPE_TUNER) or c:GetFlagEffect(80896940)~=0)
end end
function c80896940.valcheck(e,c) function c80896940.valcheck(e,c)
......
...@@ -27,7 +27,7 @@ function c81896370.valcheck(e,c) ...@@ -27,7 +27,7 @@ function c81896370.valcheck(e,c)
end end
end end
function c81896370.condition(e,tp,eg,ep,ev,re,r,rp) function c81896370.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 c81896370.filter(c) function c81896370.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
......
...@@ -32,7 +32,7 @@ function c82693042.valcon(e,re,r,rp) ...@@ -32,7 +32,7 @@ function c82693042.valcon(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 return bit.band(r,REASON_BATTLE)~=0
end end
function c82693042.thcon(e,tp,eg,ep,ev,re,r,rp) function c82693042.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 c82693042.filter(c) function c82693042.filter(c)
return c:GetLevel()==3 and c:IsAbleToHand() return c:GetLevel()==3 and c:IsAbleToHand()
......
...@@ -28,7 +28,7 @@ function c8310162.descon(e) ...@@ -28,7 +28,7 @@ function c8310162.descon(e)
return not Duel.IsEnvironment(27564031) return not Duel.IsEnvironment(27564031)
end end
function c8310162.spcon(e,tp,eg,ep,ev,re,r,rp) function c8310162.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 c8310162.spfilter(c,e,tp) function c8310162.spfilter(c,e,tp)
return c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -35,7 +35,7 @@ function c83519853.initial_effect(c) ...@@ -35,7 +35,7 @@ function c83519853.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c83519853.condition(e,tp,eg,ep,ev,re,r,rp) function c83519853.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 c83519853.filter(c,ec) function c83519853.filter(c,ec)
return c:IsSetCard(0x207a) and c:IsType(TYPE_EQUIP) and c:CheckEquipTarget(ec) return c:IsSetCard(0x207a) and c:IsType(TYPE_EQUIP) and c:CheckEquipTarget(ec)
......
...@@ -38,7 +38,7 @@ function c83755611.matcheck(e,c) ...@@ -38,7 +38,7 @@ function c83755611.matcheck(e,c)
e:SetLabel(ct) e:SetLabel(ct)
end end
function c83755611.tdcon(e,tp,eg,ep,ev,re,r,rp) function c83755611.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 c83755611.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c83755611.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsAbleToDeck() end if chkc then return chkc:IsOnField() and chkc:IsAbleToDeck() end
......
...@@ -15,7 +15,7 @@ function c83810690.initial_effect(c) ...@@ -15,7 +15,7 @@ function c83810690.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c83810690.spcon(e,tp,eg,ep,ev,re,r,rp) function c83810690.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 c83810690.filter(c,e,tp) function c83810690.filter(c,e,tp)
return c:IsRace(RACE_WARRIOR) and c:GetLevel()<=4 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_WARRIOR) and c:GetLevel()<=4 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -12,7 +12,7 @@ function c84451804.initial_effect(c) ...@@ -12,7 +12,7 @@ function c84451804.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c84451804.condition(e,tp,eg,ep,ev,re,r,rp) function c84451804.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 c84451804.filter(c,e,tp) function c84451804.filter(c,e,tp)
return c:IsCode(84451804) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(84451804) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -27,7 +27,7 @@ function c84488827.valcheck(e,c) ...@@ -27,7 +27,7 @@ function c84488827.valcheck(e,c)
end end
end end
function c84488827.condition(e,tp,eg,ep,ev,re,r,rp) function c84488827.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 c84488827.sfilter(c) function c84488827.sfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
...@@ -9,7 +9,7 @@ function c8483333.initial_effect(c) ...@@ -9,7 +9,7 @@ function c8483333.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c8483333.regcon(e,tp,eg,ep,ev,re,r,rp) function c8483333.regcon(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 c8483333.regop(e,tp,eg,ep,ev,re,r,rp) function c8483333.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -29,7 +29,7 @@ function c85505315.valcheck(e,c) ...@@ -29,7 +29,7 @@ function c85505315.valcheck(e,c)
end end
end end
function c85505315.condition(e,tp,eg,ep,ev,re,r,rp) function c85505315.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 c85505315.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c85505315.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
......
...@@ -59,7 +59,7 @@ end ...@@ -59,7 +59,7 @@ end
function c85551711.spcon(e,tp,eg,ep,ev,re,r,rp) function c85551711.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ((rp~=tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE)) return ((rp~=tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE))
or c:IsReason(REASON_BATTLE)) and c:GetSummonType()==SUMMON_TYPE_XYZ or c:IsReason(REASON_BATTLE)) and c:IsSummonType(SUMMON_TYPE_XYZ)
end end
function c85551711.spfilter(c,e,tp) function c85551711.spfilter(c,e,tp)
return c:IsRace(RACE_SPELLCASTER) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_SPELLCASTER) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -76,7 +76,7 @@ function c86238081.pcop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +76,7 @@ function c86238081.pcop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c86238081.regcon(e,tp,eg,ep,ev,re,r,rp) function c86238081.regcon(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 c86238081.regop(e,tp,eg,ep,ev,re,r,rp) function c86238081.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -52,7 +52,7 @@ function c86489182.valcheck(e,c) ...@@ -52,7 +52,7 @@ function c86489182.valcheck(e,c)
end end
end end
function c86489182.condition(e,tp,eg,ep,ev,re,r,rp) function c86489182.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 c86489182.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c86489182.target(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
......
...@@ -50,7 +50,7 @@ function c86943389.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c86943389.atkop(e,tp,eg,ep,ev,re,r,rp)
end end
function c86943389.regcon(e,tp,eg,ep,ev,re,r,rp) function c86943389.regcon(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 c86943389.regop(e,tp,eg,ep,ev,re,r,rp) function c86943389.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -54,7 +54,7 @@ function c8696773.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function c8696773.effop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c8696773.matcon(e,tp,eg,ep,ev,re,r,rp) function c8696773.matcon(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 c8696773.matfilter(c) function c8696773.matfilter(c)
return c:IsSetCard(0x107d) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x107d) and c:IsType(TYPE_MONSTER)
......
...@@ -50,7 +50,7 @@ function c8706701.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c8706701.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c8706701.cfilter(c,tp) function c8706701.cfilter(c,tp)
return c:GetSummonType()==SUMMON_TYPE_SYNCHRO and c:GetSummonPlayer()==tp return c:IsSummonType(SUMMON_TYPE_SYNCHRO) and c:GetSummonPlayer()==tp
end end
function c8706701.thcon(e,tp,eg,ep,ev,re,r,rp) function c8706701.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c8706701.cfilter,1,nil,tp) and aux.exccon(e) return eg:IsExists(c8706701.cfilter,1,nil,tp) and aux.exccon(e)
......
...@@ -46,7 +46,7 @@ function c87288189.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -46,7 +46,7 @@ function c87288189.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 c87288189.condition(e,tp,eg,ep,ev,re,r,rp) function c87288189.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 c87288189.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c87288189.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() end
......
...@@ -97,7 +97,7 @@ end ...@@ -97,7 +97,7 @@ end
function c87460579.spcon(e,tp,eg,ep,ev,re,r,rp) function c87460579.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return (c:IsReason(REASON_BATTLE) or (c:GetReasonPlayer()~=tp and c:IsReason(REASON_EFFECT))) return (c:IsReason(REASON_BATTLE) or (c:GetReasonPlayer()~=tp and c:IsReason(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 c87460579.spfilter(c,e,tp) function c87460579.spfilter(c,e,tp)
return c:IsSetCard(0xe6) and not c:IsCode(87460579) and c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xe6) and not c:IsCode(87460579) and c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -119,7 +119,7 @@ function c87588741.immcon(e) ...@@ -119,7 +119,7 @@ function c87588741.immcon(e)
return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL) return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c87588741.damcon(e,tp,eg,ep,ev,re,r,rp) function c87588741.damcon(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 c87588741.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c87588741.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct1=Duel.GetMatchingGroupCount(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_MONSTER) local ct1=Duel.GetMatchingGroupCount(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_MONSTER)
......
...@@ -87,7 +87,7 @@ function c88071625.facechk(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,7 +87,7 @@ function c88071625.facechk(e,tp,eg,ep,ev,re,r,rp)
e:GetLabelObject():SetLabel(1) e:GetLabelObject():SetLabel(1)
end end
function c88071625.copycon(e,tp,eg,ep,ev,re,r,rp) function c88071625.copycon(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 c88071625.filter(c,e) function c88071625.filter(c,e)
return c:IsType(TYPE_EFFECT) and c:IsLocation(LOCATION_GRAVE) and c:IsCanBeEffectTarget(e) return c:IsType(TYPE_EFFECT) and c:IsLocation(LOCATION_GRAVE) and c:IsCanBeEffectTarget(e)
......
...@@ -25,7 +25,7 @@ function c8809344.initial_effect(c) ...@@ -25,7 +25,7 @@ function c8809344.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c8809344.rkcon(e,tp,eg,ep,ev,re,r,rp) function c8809344.rkcon(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 c8809344.rkcost(e,tp,eg,ep,ev,re,r,rp,chk) function c8809344.rkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
......
...@@ -33,7 +33,7 @@ function c88305705.initial_effect(c) ...@@ -33,7 +33,7 @@ function c88305705.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c88305705.atkcon(e,tp,eg,ep,ev,re,r,rp) function c88305705.atkcon(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 c88305705.atkfilter(c) function c88305705.atkfilter(c)
return c:IsFaceup() and c:GetAttack()>0 return c:IsFaceup() and c:GetAttack()>0
......
...@@ -24,7 +24,7 @@ function c88722973.initial_effect(c) ...@@ -24,7 +24,7 @@ function c88722973.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c88722973.regcon(e,tp,eg,ep,ev,re,r,rp) function c88722973.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 c88722973.regtg(e,tp,eg,ep,ev,re,r,rp,chk) function c88722973.regtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_DECK,0,1,nil,TYPE_PENDULUM) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_DECK,0,1,nil,TYPE_PENDULUM) end
......
...@@ -69,7 +69,7 @@ function c88757791.sumsuc(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +69,7 @@ function c88757791.sumsuc(e,tp,eg,ep,ev,re,r,rp)
end end
function c88757791.indcon(e) function c88757791.indcon(e)
local c=e:GetHandler() local c=e:GetHandler()
return c:GetFlagEffect(88757791)~=0 and c:GetSummonType()==SUMMON_TYPE_PENDULUM return c:GetFlagEffect(88757791)~=0 and c:IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c88757791.indtg(e,c) function c88757791.indtg(e,c)
return c:IsSetCard(0x98) and c:IsType(TYPE_PENDULUM) return c:IsSetCard(0x98) and c:IsType(TYPE_PENDULUM)
......
...@@ -22,7 +22,7 @@ function c89856523.initial_effect(c) ...@@ -22,7 +22,7 @@ function c89856523.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c89856523.setcon(e,tp,eg,ep,ev,re,r,rp) function c89856523.setcon(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 c89856523.filter(c) function c89856523.filter(c)
return c:IsSetCard(0x7c) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x7c) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable()
......
...@@ -117,7 +117,7 @@ function c90885155.immcon(e) ...@@ -117,7 +117,7 @@ function c90885155.immcon(e)
return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL) return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c90885155.effcon(e,tp,eg,ep,ev,re,r,rp) function c90885155.effcon(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 c90885155.effop(e,tp,eg,ep,ev,re,r,rp) function c90885155.effop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -17,7 +17,7 @@ function c90953320.initial_effect(c) ...@@ -17,7 +17,7 @@ function c90953320.initial_effect(c)
end end
function c90953320.drcon(e,tp,eg,ep,ev,re,r,rp) function c90953320.drcon(e,tp,eg,ep,ev,re,r,rp)
local tg=eg:GetFirst() local tg=eg:GetFirst()
return eg:GetCount()==1 and tg~=e:GetHandler() and tg:GetSummonType()==SUMMON_TYPE_SYNCHRO return eg:GetCount()==1 and tg~=e:GetHandler() and tg:IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c90953320.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c90953320.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end if chk==0 then return e:GetHandler():IsRelateToEffect(e) end
......
...@@ -65,7 +65,7 @@ function c91718579.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,7 +65,7 @@ function c91718579.effop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c91718579.poscon(e,tp,eg,ep,ev,re,r,rp) function c91718579.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 c91718579.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c91718579.postg(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:IsPosition(POS_FACEUP_ATTACK) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsPosition(POS_FACEUP_ATTACK) end
......
...@@ -55,7 +55,7 @@ function c93149655.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c93149655.atkop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c93149655.damcon(e,tp,eg,ep,ev,re,r,rp) function c93149655.damcon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM return ep~=tp and e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
and Duel.GetAttacker()==e:GetHandler() and Duel.GetAttacker()==e:GetHandler()
end end
function c93149655.damfilter(c) function c93149655.damfilter(c)
......
...@@ -201,7 +201,7 @@ function c93157004.synop(e,tp,eg,ep,ev,re,r,rp,c,tuner,mg) ...@@ -201,7 +201,7 @@ function c93157004.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 c93157004.descon(e,tp,eg,ep,ev,re,r,rp) function c93157004.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 c93157004.desfilter(c) function c93157004.desfilter(c)
return c:IsFaceup() and bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)~=0 return c:IsFaceup() and bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)~=0
......
...@@ -29,7 +29,7 @@ function c93211836.valcheck(e,c) ...@@ -29,7 +29,7 @@ function c93211836.valcheck(e,c)
end end
function c93211836.condition(e,tp,eg,ep,ev,re,r,rp) function c93211836.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()==1 return c:IsSummonType(SUMMON_TYPE_ADVANCE) and e:GetLabel()==1
end end
function c93211836.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c93211836.target(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
......
...@@ -42,7 +42,7 @@ function c9348522.checkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c9348522.checkop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c9348522.spcon(e,tp,eg,ep,ev,re,r,rp) function c9348522.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 c9348522.spfilter(c,e,tp) function c9348522.spfilter(c,e,tp)
return c:GetLevel()==9 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetLevel()==9 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -78,7 +78,7 @@ function c94344242.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,7 +78,7 @@ function c94344242.efop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c94344242.defcon(e,tp,eg,ep,ev,re,r,rp) function c94344242.defcon(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 c94344242.defop(e,tp,eg,ep,ev,re,r,rp) function c94344242.defop(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)
......
...@@ -29,7 +29,7 @@ function c94381039.valcheck(e,c) ...@@ -29,7 +29,7 @@ function c94381039.valcheck(e,c)
end end
end end
function c94381039.condition(e,tp,eg,ep,ev,re,r,rp) function c94381039.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 c94381039.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c94381039.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,4) end if chk==0 then return Duel.IsPlayerCanDiscardDeckAsCost(tp,4) end
......
...@@ -32,7 +32,7 @@ function c95401059.splimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -32,7 +32,7 @@ function c95401059.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 c95401059.condition1(e,tp,eg,ep,ev,re,r,rp) function c95401059.condition1(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 c95401059.filter(c,e,tp) function c95401059.filter(c,e,tp)
return c:IsSetCard(0xc4) and not c:IsCode(95401059) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xc4) and not c:IsCode(95401059) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -20,7 +20,7 @@ function c95637655.initial_effect(c) ...@@ -20,7 +20,7 @@ function c95637655.initial_effect(c)
Duel.AddCustomActivityCounter(95637655,ACTIVITY_SPSUMMON,c95637655.counterfilter) Duel.AddCustomActivityCounter(95637655,ACTIVITY_SPSUMMON,c95637655.counterfilter)
end end
function c95637655.counterfilter(c) function c95637655.counterfilter(c)
return c:GetSummonType()~=SUMMON_TYPE_SYNCHRO return not c:IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c95637655.spcon(e,c) function c95637655.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -34,7 +34,7 @@ function c96223501.splimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -34,7 +34,7 @@ function c96223501.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 c96223501.condition(e,tp,eg,ep,ev,re,r,rp) function c96223501.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 c96223501.filter1(c) function c96223501.filter1(c)
return c:IsFaceup() and (c:IsSetCard(0x9c) or c:IsSetCard(0xc4)) return c:IsFaceup() and (c:IsSetCard(0x9c) or c:IsSetCard(0xc4))
......
...@@ -38,7 +38,7 @@ function c96381979.initial_effect(c) ...@@ -38,7 +38,7 @@ function c96381979.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c96381979.setcon(e,tp,eg,ep,ev,re,r,rp) function c96381979.setcon(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 c96381979.filter(c) function c96381979.filter(c)
return c:IsSetCard(0x7c) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x7c) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable()
......
...@@ -53,7 +53,7 @@ function c96570609.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -53,7 +53,7 @@ function c96570609.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 c96570609.spcon(e,tp,eg,ep,ev,re,r,rp) function c96570609.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 c96570609.tgfilter(c) function c96570609.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()
......
...@@ -26,7 +26,7 @@ function c96592102.initial_effect(c) ...@@ -26,7 +26,7 @@ function c96592102.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c96592102.atkcon(e,tp,eg,ep,ev,re,r,rp) function c96592102.atkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(tp)<=Duel.GetLP(1-tp)-3000 and e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return Duel.GetLP(tp)<=Duel.GetLP(1-tp)-3000 and e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c96592102.atkop(e,tp,eg,ep,ev,re,r,rp) function c96592102.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -13,7 +13,7 @@ function c97433739.initial_effect(c) ...@@ -13,7 +13,7 @@ function c97433739.initial_effect(c)
Duel.AddCustomActivityCounter(97433739,ACTIVITY_SPSUMMON,c97433739.counterfilter) Duel.AddCustomActivityCounter(97433739,ACTIVITY_SPSUMMON,c97433739.counterfilter)
end end
function c97433739.counterfilter(c) function c97433739.counterfilter(c)
return c:GetSummonType()==SUMMON_TYPE_XYZ return c:IsSummonType(SUMMON_TYPE_XYZ)
end end
function c97433739.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c97433739.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(97433739,tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.GetCustomActivityCount(97433739,tp,ACTIVITY_SPSUMMON)==0 end
...@@ -100,7 +100,7 @@ function c97433739.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -100,7 +100,7 @@ function c97433739.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetLabelObject(e2) e1:SetLabelObject(e2)
end end
function c97433739.checkop2(e,tp,eg,ep,ev,re,r,rp) function c97433739.checkop2(e,tp,eg,ep,ev,re,r,rp)
if eg:GetFirst():GetSummonType()==SUMMON_TYPE_XYZ then if eg:GetFirst():IsSummonType(SUMMON_TYPE_XYZ) then
e:GetLabelObject():Reset() e:GetLabelObject():Reset()
e:Reset() e:Reset()
end end
......
...@@ -13,7 +13,7 @@ function c9748752.initial_effect(c) ...@@ -13,7 +13,7 @@ function c9748752.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c9748752.condition(e,tp,eg,ep,ev,re,r,rp) function c9748752.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 c9748752.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c9748752.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() end
......
...@@ -22,7 +22,7 @@ function c97792247.initial_effect(c) ...@@ -22,7 +22,7 @@ function c97792247.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c97792247.spcon(e,tp,eg,ep,ev,re,r,rp) function c97792247.spcon(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(nil,tp,LOCATION_MZONE,0,1,e:GetHandler()) and not Duel.IsExistingMatchingCard(nil,tp,LOCATION_MZONE,0,1,e:GetHandler())
end end
function c97792247.spfilter(c,e,tp) function c97792247.spfilter(c,e,tp)
......
...@@ -17,7 +17,7 @@ function c98012938.initial_effect(c) ...@@ -17,7 +17,7 @@ function c98012938.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c98012938.condition(e,tp,eg,ep,ev,re,r,rp) function c98012938.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 c98012938.filter(c) function c98012938.filter(c)
return c:IsFaceup() and c:IsAbleToHand() return c:IsFaceup() and c:IsAbleToHand()
......
...@@ -39,7 +39,7 @@ function c98558751.initial_effect(c) ...@@ -39,7 +39,7 @@ function c98558751.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c98558751.descon(e,tp,eg,ep,ev,re,r,rp) function c98558751.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 c98558751.filter(c) function c98558751.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
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