Commit eb192721 authored by Momobako's avatar Momobako

Push by Appveyor

parent 288c5812
......@@ -21,7 +21,7 @@ function c10113036.initial_effect(c)
c:RegisterEffect(e2)
end
function c10113036.con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c10113036.op(e,tp,eg,ep,ev,re,r,rp)
--Atk up
......
......@@ -109,7 +109,7 @@ function c10113039.retop(e,tp,eg,ep,ev,re,r,rp)
e:Reset()
end
function c10113039.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_RITUAL
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end
function c10113039.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
......
......@@ -53,7 +53,7 @@ function c10113087.retg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,e:GetLabel())
end
function c10113087.recon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)+1
end
--mdzz with some fuck card has 2 or more races (oh ,,,,,I have 2 card like this....XD)
function c10113087.spcon(e,c)
......
......@@ -82,7 +82,7 @@ function c10119005.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c10119005.sumfilter(c)
return c:GetSummonType()==SUMMON_TYPE_XYZ
return c:IsSummonType(SUMMON_TYPE_XYZ)
end
function c10119005.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -48,7 +48,7 @@ end
function c10119008.sumfilter(c,tp)
local mg=c:GetMaterial()
return c:GetSummonType()==SUMMON_TYPE_XYZ and mg:GetCount()>0 and mg:IsExists(c10119008.effilter,1,nil,tp)
return c:IsSummonType(SUMMON_TYPE_XYZ) and mg:GetCount()>0 and mg:IsExists(c10119008.effilter,1,nil,tp)
end
function c10119008.desfilter(c)
......@@ -72,7 +72,7 @@ end
function c10119008.cdsstg(e,c)
local mg=c:GetMaterial()
return c:GetSummonType()==SUMMON_TYPE_XYZ and mg:GetCount()>0 and mg:IsExists(c10119008.effilter,1,nil,e:GetHandlerPlayer())
return c:IsSummonType(SUMMON_TYPE_XYZ) and mg:GetCount()>0 and mg:IsExists(c10119008.effilter,1,nil,e:GetHandlerPlayer())
end
function c10119008.effilter(c,tp)
......
......@@ -57,14 +57,14 @@ function c10123006.chainlm(e,rp,tp)
end
function c10123006.sumfilter(c,tp)
local mg=c:GetMaterial()
return c:GetSummonType()==SUMMON_TYPE_SYNCHRO and mg:GetCount()>0 and mg:IsExists(c10123006.effilter,1,nil,tp)
return c:IsSummonType(SUMMON_TYPE_SYNCHRO) and mg:GetCount()>0 and mg:IsExists(c10123006.effilter,1,nil,tp)
end
function c10123006.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.SetChainLimitTillChainEnd(c10123006.chainlm)
end
function c10123006.cdsstg(e,c)
local mg=c:GetMaterial()
return c:GetSummonType()==SUMMON_TYPE_SYNCHRO and mg:GetCount()>0 and mg:IsExists(c10123006.effilter,1,nil,e:GetHandlerPlayer())
return c:IsSummonType(SUMMON_TYPE_SYNCHRO) and mg:GetCount()>0 and mg:IsExists(c10123006.effilter,1,nil,e:GetHandlerPlayer())
end
function c10123006.effilter(c,tp)
return c:IsSetCard(0x5334) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp and c:IsReason(REASON_SYNCHRO)
......
......@@ -26,7 +26,7 @@ function c10123007.thfilter(c,eg,e,tp)
end
function c10123007.thfilter2(c,mc,tp)
local mg=c:GetMaterial()
return c:GetSummonType()==SUMMON_TYPE_SYNCHRO and mc:GetReasonCard()==c and mg:GetCount()>0 and mg:IsExists(c10123007.thfilter3,1,nil,tp)
return c:IsSummonType(SUMMON_TYPE_SYNCHRO) and mc:GetReasonCard()==c and mg:GetCount()>0 and mg:IsExists(c10123007.thfilter3,1,nil,tp)
end
function c10123007.thfilter3(c,tp)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsSetCard(0x5334)
......
......@@ -50,7 +50,7 @@ function c1110111.vfilter3(c)
end
--
function c1110111.con1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end
--
function c1110111.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -54,7 +54,7 @@ function c1110112.filter1(c,e,tp)
return c:IsCode(1110111) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsFaceup()
end
function c1110112.con1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end
--
function c1110112.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -79,7 +79,7 @@ function c1110151.filterx(c)
end
--
function c1110151.con3(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_RITUAL
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end
function c1110151.cost3(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_BATTLE_PHASE)==0 end
......
......@@ -19,7 +19,7 @@ function c1111008.IsLd(c)
end
--
function c1111008.cfilter1(c)
return c:GetSummonType()==SUMMON_TYPE_FUSION and c:IsFaceup()
return c:IsSummonType(SUMMON_TYPE_FUSION) and c:IsFaceup()
end
function c1111008.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......@@ -30,14 +30,14 @@ function c1111008.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
end
--
function c1111008.cfilter1(c)
return c:IsFaceup() and c:GetLevel()<4 and c:GetSummonType()==SUMMON_TYPE_NORMAL
return c:IsFaceup() and c:GetLevel()<4 and c:IsSummonType(SUMMON_TYPE_NORMAL)
end
function c1111008.con1(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c1111008.cfilter1,tp,LOCATION_ONFIELD,0,1,nil) and Duel.GetMatchingGroupCount(aux.TRUE,tp,LOCATION_MZONE,0,nil)==1
end
--
function c1111008.tfilter0(c)
return c:GetSummonType()==SUMMON_TYPE_SPECIAL and c:IsFaceup()
return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsFaceup()
end
function c1111008.tfilter1(c)
return c1111008.IsLd(c) and c:IsAbleToHand()
......
......@@ -38,7 +38,7 @@ function c114000268.ntop(e,tp,eg,ep,ev,re,r,rp,c)
end
function c114000268.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_NORMAL+1
return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL)+1
end
function c114000268.filter(c)
return c:IsType(TYPE_MONSTER) and ( c:IsSetCard(0x221) or c:IsCode(114000231) ) and c:IsAbleToGraveAsCost()
......
......@@ -65,7 +65,7 @@ function c114100154.checkop(e,tp,eg,ep,ev,re,r,rp)
end
--
function c114100154.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c114100154.regop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -26,7 +26,7 @@ function c1150032.initial_effect(c)
end
--
function c1150032.cfilter1(c)
return c:IsFaceup() and c:IsRace(RACE_PLANT) and c:GetLevel()>7 and c:GetSummonType()==SUMMON_TYPE_ADVANCE
return c:IsFaceup() and c:IsRace(RACE_PLANT) and c:GetLevel()>7 and c:IsSummonType(SUMMON_TYPE_ADVANCE)
end
function c1150032.con1(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c1150032.cfilter1,tp,LOCATION_ONFIELD,0,1,nil)
......
......@@ -41,7 +41,7 @@ function c1190101.syfilter2(c)
end
--
function c1190101.con1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
--
function c1190101.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -42,7 +42,7 @@ function c1190102.syfilter2(c)
end
--
function c1190102.con1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
--
function c1190102.filter1(c,e,tp)
......
......@@ -48,7 +48,7 @@ function c1190103.syfilter2(c)
end
--
function c1190103.con1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c1190103.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,2000) end
......
......@@ -41,7 +41,7 @@ function c1190104.syfilter2(c)
end
--
function c1190104.con1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c1190104.op1(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(1-tp,Duel.GetLP(1-tp)/2)
......
......@@ -88,7 +88,7 @@ function c1200045.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local mg=c:GetMaterial()
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 ct>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>=ct
and mg:FilterCount(c1200045.spfilter,nil,e,tp,c)==ct end
Duel.SetTargetCard(mg)
......
......@@ -81,7 +81,7 @@ function c1200050.sprop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Release(g1,REASON_COST)
end
function c1200050.con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end
function c1200050.spfilter4(c,e,tp)
return c:IsType(TYPE_MONSTER) and c:IsCode(1200011,1200012,1200013,1200014,1200015,1200016,1200041,1200042,1200043,1200050) and c:IsCanBeSpecialSummoned(e, 0, tp, false, false)
......
......@@ -80,7 +80,7 @@ function c1200051.operation2(e,tp,eg,ep,ev,re,r,rp)
end
end
function c1200051.con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c1200051.rfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xfba) and c:IsReleasable()
......
......@@ -31,7 +31,7 @@ function c12001021.initial_effect(c)
c:RegisterEffect(e3)
end
function c12001021.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_LINK and e:GetLabel()==1
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) and e:GetLabel()==1
end
function c12001021.valcheck(e,c)
local g=c:GetMaterial()
......
......@@ -43,7 +43,7 @@ function c12001023.ntfilter(c)
return c:IsFaceup() and c:IsSetCard(0xfb0) and c:IsCanBeSynchroMaterial()
end
function c12001023.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(c12001023.matfilter2,0,LOCATION_MZONE,LOCATION_MZONE,1,c,syncard)
end
function c12001023.matfilter2(c,syncard)
......
......@@ -47,7 +47,7 @@ function cm.sop(e,tp,eg,ep,ev,re,r,rp,c)
end
--Draw
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,m)
......
......@@ -47,7 +47,7 @@ function cm.sop(e,tp,eg,ep,ev,re,r,rp,c)
end
--Draw
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,m)
......
......@@ -47,7 +47,7 @@ function cm.sop(e,tp,eg,ep,ev,re,r,rp,c)
end
--Draw
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,m)
......
......@@ -47,7 +47,7 @@ function cm.sop(e,tp,eg,ep,ev,re,r,rp,c)
end
--Draw
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,m)
......
......@@ -47,7 +47,7 @@ function cm.sop(e,tp,eg,ep,ev,re,r,rp,c)
end
--Draw
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,m)
......
......@@ -47,7 +47,7 @@ function cm.sop(e,tp,eg,ep,ev,re,r,rp,c)
end
--Draw
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,m)
......
......@@ -47,7 +47,7 @@ function cm.sop(e,tp,eg,ep,ev,re,r,rp,c)
end
--Draw
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,m)
......
......@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e4:SetCode(EVENT_SPSUMMON_SUCCESS)
e4:SetProperty(0x14000+EFFECT_FLAG_CARD_TARGET)
e4:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end)
e4:SetTarget(cm.destg1)
e4:SetOperation(cm.desop1)
......
......@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(0x14000)
e1:SetCondition(function(e)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end)
e1:SetCost(function(e)
e:SetLabel(1)
......
......@@ -267,7 +267,7 @@ function cm.valcheck(e,c)
e:GetLabelObject():SetLabel(ct)
end
function cm.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
function cm.mtop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -24,7 +24,7 @@ function c16063015.initial_effect(c)
c:RegisterEffect(e1)
end
function c16063015.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c16063015.desfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsPosition(POS_FACEUP_ATTACK) and c:IsDestructable()
......
......@@ -25,7 +25,7 @@ function c16063025.initial_effect(c)
c:RegisterEffect(e2)
end
function c16063025.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
function c16063025.spfilter(c,e,tp)
return c:IsType(TYPE_TUNER) and c:IsSetCard(0x5c5) and c:IsCanBeSpecialSummoned(e,0,tp,false,true)
......
......@@ -46,7 +46,7 @@ function c16080031.distarget(e,c)
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c16080031.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
function c16080031.spfilter(c,e,tp)
return c:IsLevelBelow(4) and c:IsSetCard(0x5ca) and c:IsCanBeSpecialSummoned(e,0,tp,false,true)
......
......@@ -43,7 +43,7 @@ function c17060801.IsMillion_Arthur(c)
return m and m.is_named_with_Million_Arthur
end
function c17060801.cfilter(c,tp)
return c:IsFaceup() and c17060801.IsMillion_Arthur(c) and c:IsControler(tp) and c:GetSummonType()==SUMMON_TYPE_PENDULUM
return c:IsFaceup() and c17060801.IsMillion_Arthur(c) and c:IsControler(tp) and c:IsSummonType(SUMMON_TYPE_PENDULUM)
end
function c17060801.atkcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c17060801.cfilter,1,nil,tp)
......
......@@ -69,7 +69,7 @@ function c17060802.pcop(e,tp,eg,ep,ev,re,r,rp)
end
function c17060802.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM
return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end
function c17060802.filter(c,e,tp)
return c17060802.IsMillion_Arthur(c) and not c:IsCode(17060802) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -78,7 +78,7 @@ function c17060805.pcop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c17060805.tdcon(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
function c17060805.filter(c)
return c:IsType(TYPE_MONSTER)
......
......@@ -96,7 +96,7 @@ function c17060806.pcop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c17060806.rmcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION and e:GetLabel()==1
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) and e:GetLabel()==1
end
function c17060806.rmfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToRemove()
......
......@@ -59,7 +59,7 @@ function c17060807.IsMillion_Arthur(c)
return m and m.is_named_with_Million_Arthur
end
function c17060807.sumcon(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
function c17060807.valcheck(e,c)
local g=c:GetMaterial()
......
......@@ -89,6 +89,6 @@ function c17060811.penop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c17060811.tcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
or e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
or e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end
\ No newline at end of file
......@@ -75,7 +75,7 @@ function c17060832.atkop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c17060832.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c17060832.spfilter(c,e,tp)
return c17060832.IsMillion_Arthur(c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......@@ -134,5 +134,5 @@ function c17060832.penop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c17060832.tcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
\ No newline at end of file
......@@ -96,7 +96,7 @@ function c17060843.tgop(e,tp,eg,ep,ev,re,r,rp)
end
function c17060843.xyzcon(e,tp,eg,ep,ev,re,r,rp)
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
function c17060843.xyzcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -90,7 +90,7 @@ function c17060844.ntfilter(c)
return c:IsFaceup() and c:IsType(TYPE_SYNCHRO) and c:IsRace(RACE_WARRIOR) and c:IsCanBeSynchroMaterial()
end
function c17060844.matfilter1(c,syncard)
return (c:IsType(TYPE_PENDULUM) and c17060844.IsMillion_Arthur(c)) and c:GetSummonType()==SUMMON_TYPE_PENDULUM and c:IsNotTuner() and c:IsFaceup() and c:IsCanBeSynchroMaterial(syncard)
return (c:IsType(TYPE_PENDULUM) and c17060844.IsMillion_Arthur(c)) and c:IsSummonType(SUMMON_TYPE_PENDULUM) and c:IsNotTuner() and c:IsFaceup() and c:IsCanBeSynchroMaterial(syncard)
and Duel.IsExistingMatchingCard(c17060844.matfilter2,0,LOCATION_MZONE,LOCATION_MZONE,1,c,syncard)
end
function c17060844.matfilter2(c,syncard)
......
......@@ -73,7 +73,7 @@ function c17060849.rpop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c17060849.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end
function c17060849.filter(c,e,tp)
return c:IsType(TYPE_PENDULUM) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -45,7 +45,7 @@ function c17060860.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c17060860.pscon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_LINK
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function c17060860.psfilter(c)
return c:IsFaceup() and c17060860.IsDark_Degenerate(c) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden()
......
......@@ -82,7 +82,7 @@ function c17060864.ntfilter(c)
return c:IsFaceup() and c17060864.IsMagic_Factions(c) and c:IsCanBeSynchroMaterial()
end
function c17060864.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(c17060864.matfilter2,0,LOCATION_MZONE,LOCATION_MZONE,1,c,syncard)
end
function c17060864.matfilter2(c,syncard)
......
......@@ -87,7 +87,7 @@ function c17060865.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c17060865.tdcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end
function c17060865.tdfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToDeck()
......
......@@ -33,7 +33,7 @@ function c17060882.initial_effect(c)
c:RegisterEffect(e3)
end
function c17060882.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_LINK and e:GetLabel()==1
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) and e:GetLabel()==1
end
function c17060882.valcheck(e,c)
local g=c:GetMaterial()
......
......@@ -216,10 +216,10 @@ function c17082101.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c17082101.tgcon(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
function c17082101.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(17082101)~=0)
end
function c17082101.valcheck(e,c)
......
......@@ -37,7 +37,7 @@ function c2110001.initial_effect(c)
c:RegisterEffect(e3)
end
function c2110001.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_RITUAL
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end
function c2110001.filter(c)
return c:IsRace(RACE_DRAGON) and c:IsLevelBelow(6) and c:IsAbleToHand()
......
......@@ -39,7 +39,7 @@ function c2117000.initial_effect(c)
c:RegisterEffect(e1)
end
function c2117000.remcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end
function c2117000.tgfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsRace(RACE_FIEND) and c:IsAbleToGrave()
......
......@@ -16,7 +16,7 @@ function c2117010.initial_effect(c)
c:RegisterEffect(e1)
end
function c2117010.remcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end
function c2117010.ffilter(c)
return c:IsSetCard(0x21c) and c:IsType(TYPE_MONSTER)
......
......@@ -24,7 +24,7 @@ function c2130001.initial_effect(c)
c:RegisterEffect(e1)
end
function c2130001.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c2130001.tgop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -34,7 +34,7 @@ function c21401115.initial_effect(c)
c:RegisterEffect(e3)
end
function c21401115.imcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c21401115.imfilter(e,te)
return te:IsActiveType(TYPE_MONSTER) and te:GetHandler():GetRace(RACE_DRAGON)
......
......@@ -39,7 +39,7 @@ function c21401116.initial_effect(c)
c:RegisterEffect(e3)
end
function c21401116.imcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c21401116.imfilter(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0
......
......@@ -46,7 +46,7 @@ function c21401121.initial_effect(c)
c:RegisterEffect(e5)
end
function c21401121.imcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c21401121.imfilter(e,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0
......
......@@ -40,7 +40,7 @@ function c21401122.initial_effect(c)
c:RegisterEffect(e5)
end
function c21401122.imcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c21401122.imfilter(e,te)
return (te:IsActiveType(TYPE_SPELL) or (te:IsActiveType(TYPE_MONSTER) and te:GetHandler():GetRace(RACE_SPELLCASTER)))
......
......@@ -95,7 +95,7 @@ end
function c22230161.spr(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if bit.band(r,0x41)~=0x41 or not c:IsPreviousLocation(LOCATION_ONFIELD) then return end
if c:GetSummonType()==SUMMON_TYPE_LINK then
if c:IsSummonType(SUMMON_TYPE_LINK) then
if Duel.GetCurrentPhase()==PHASE_STANDBY then
c:RegisterFlagEffect(22230161,RESET_EVENT+0x1ff0000+RESET_PHASE+PHASE_STANDBY,0,2)
else
......
......@@ -36,7 +36,7 @@ function c23330006.initial_effect(c)
c:RegisterEffect(e4)
end
function c23330006.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c23330006.spfilter(c,e,tp)
return c:GetLevel()==1 and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -36,7 +36,7 @@ function c23330007.initial_effect(c)
c:RegisterEffect(e4)
end
function c23330007.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c23330007.spfilter(c,e,tp)
return c:IsLevelBelow(2) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -36,7 +36,7 @@ function c23330008.initial_effect(c)
c:RegisterEffect(e4)
end
function c23330008.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c23330008.spfilter(c,e,tp)
return c:IsLevelBelow(3) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -36,7 +36,7 @@ function c23330009.initial_effect(c)
c:RegisterEffect(e4)
end
function c23330009.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c23330009.spfilter(c,e,tp)
return c:IsLevelBelow(4) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -36,7 +36,7 @@ function c23330010.initial_effect(c)
c:RegisterEffect(e4)
end
function c23330010.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c23330010.spfilter(c,e,tp)
return c:IsType(TYPE_TUNER) and c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -46,7 +46,7 @@ function c23330013.initial_effect(c)
c:RegisterEffect(e4)
end
function c23330013.tdcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c23330013.tdfilter(c)
return (c:IsType(TYPE_FUSION) or c:IsType(TYPE_XYZ)) and c:IsAbleToDeck()
......@@ -61,7 +61,7 @@ function c23330013.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
end
function c23330013.splimit(e,c,tp,sumtp,sumpos)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and (bit.band(sumtp,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION or bit.band(sumtp,SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and (bit.band(sumtp,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION or bit.band(sumtp,SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ)
end
function c23330013.matfilter1(c,syncard)
return c:IsType(TYPE_TUNER) and (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and c:IsCanBeSynchroMaterial(syncard)
......
......@@ -51,5 +51,5 @@ function c23330014.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(tp,cg)
end
function c23330014.splimit(e,c,tp,sumtp,sumpos)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and (bit.band(sumtp,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION or bit.band(sumtp,SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and (bit.band(sumtp,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION or bit.band(sumtp,SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ)
end
......@@ -50,14 +50,14 @@ function c23330015.initial_effect(c)
c:RegisterEffect(e5)
end
function c23330015.lpcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and e:GetHandler():GetMaterial():GetCount()==5
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and e:GetHandler():GetMaterial():GetCount()==5
end
function c23330015.lpop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(1-tp,2000)
Duel.SetLP(tp,8000)
end
function c23330015.splimit(e,c,tp,sumtp,sumpos)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO and (bit.band(sumtp,SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL or bit.band(sumtp,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION or bit.band(sumtp,SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ or bit.band(sumtp,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and (bit.band(sumtp,SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL or bit.band(sumtp,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION or bit.band(sumtp,SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ or bit.band(sumtp,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM)
end
function c23330015.matfilter1(c,syncard)
return c:IsType(TYPE_TUNER) and c:IsType(TYPE_SYNCHRO) and (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and c:IsCanBeSynchroMaterial(syncard)
......
......@@ -176,7 +176,7 @@ function c33700004.descon(e)
return e:GetHandler():GetFlagEffect(33700004)~=0 and not Duel.IsExistingMatchingCard(c33700004.actfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end
function c33700004.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)+1
end
function c33700004.desop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(33700004,RESET_EVENT+0x1fe0000,0,1)
......
......@@ -120,7 +120,7 @@ function c33700005.pencon2(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT)~=0
end
function c33700005.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)+1
end
function c33700005.operation(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(33700005,RESET_EVENT+0x1fe0000,0,1)
......
......@@ -135,7 +135,7 @@ function c33700006.descon(e)
return e:GetHandler():GetFlagEffect(33700006)~=0 and not Duel.IsExistingMatchingCard(c33700006.actfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end
function c33700006.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)+1
end
function c33700006.operation(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(33700006,RESET_EVENT+0x1fe0000,0,1)
......
......@@ -28,7 +28,7 @@ function c33700028.initial_effect(c)
c:RegisterEffect(e2)
end
function c33700028.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c33700028.spfilter(c,e,tp)
return c:IsType(TYPE_MONSTER) and c:IsFaceup() and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -115,7 +115,7 @@ function c33700030.ntop(e,tp,eg,ep,ev,re,r,rp,c)
c:RegisterEffect(e2)
end
function c33700030.valcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_NORMAL+1
return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL)+1
end
function c33700030.valop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -22,7 +22,7 @@ function c33700041.initial_effect(c)
c:RegisterEffect(e2)
end
function c33700041.cfilter(c,e,tp)
return c:GetSummonPlayer()==tp and c:GetSummonType()==SUMMON_TYPE_PENDULUM
return c:GetSummonPlayer()==tp and c:IsSummonType(SUMMON_TYPE_PENDULUM)
and (not e or c:IsRelateToEffect(e))
end
function c33700041.spcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -32,7 +32,7 @@ function cm.ovfilter(c)
return c:IsType(TYPE_XYZ) and c:GetRank()==4
end
function cm.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ and e:GetHandler():GetOverlayGroup():IsExists(cm.ovfilter,1,nil)
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ) and e:GetHandler():GetOverlayGroup():IsExists(cm.ovfilter,1,nil)
end
function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -89,7 +89,7 @@ function cm.efop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end
function cm.filter(c,tp)
return not c:IsType(TYPE_TOKEN) and (c:IsControler(tp) or c:IsAbleToChangeControler())
......
......@@ -101,7 +101,7 @@ function cm.valcheck(e,c)
e:GetLabelObject():SetLabel(ct)
end
function cm.mtcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION and e:GetLabel()>0
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) and e:GetLabel()>0
end
function cm.mtop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -20,7 +20,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(function(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)
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -11,7 +11,7 @@ function cm.initial_effect(c)
e4:SetCode(EVENT_SPSUMMON_SUCCESS)
e4:SetProperty(0x14000+EFFECT_FLAG_CARD_TARGET)
e4:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end)
e4:SetTarget(cm.destg)
e4:SetOperation(cm.desop)
......
......@@ -24,7 +24,7 @@ function cm.initial_effect(c)
e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_SPSUMMON_SUCCESS)
e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION and cm.material
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) and cm.material
end)
e0:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local code1=cm.material[1]
......
......@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e4:SetProperty(0x14000)
e4:SetCost(cm.rm)
e4:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end)
e4:SetTarget(cm.drtg)
e4:SetOperation(cm.drop)
......
......@@ -11,7 +11,7 @@ function cm.initial_effect(c)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_SPSUMMON_SUCCESS)
e4:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end)
e4:SetProperty(0x14000)
e4:SetCost(Senya.PrismRemoveExtraCost)
......
......@@ -31,7 +31,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.setcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsAbleToHand() end
......
......@@ -64,7 +64,7 @@ function cm.efop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end
function cm.filter(c)
return (Senya.check_set_elem(c) or Senya.check_set_prism(c)) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
......
......@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end)
e2:SetProperty(0x14000)
e2:SetCost(Senya.PrismRemoveExtraCost)
......
......@@ -38,7 +38,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,0,LOCATION_ONFIELD,1,nil) end
......
......@@ -40,7 +40,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -55,7 +55,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
else e:SetLabel(0) end
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function cm.thtg(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:IsDestructable() end
......
......@@ -29,7 +29,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function cm.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToRemove()
......
......@@ -55,7 +55,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function cm.filter(c,e,tp,mg)
return mg and mg:IsContains(c) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -42,7 +42,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function cm.drtarg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
......
......@@ -30,7 +30,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,2) end
......
......@@ -103,7 +103,7 @@ function cm.xyzop(e,tp,eg,ep,ev,re,r,rp,c,og,min,max)
Senya.OverlayGroup(c,g,false,true)
end
function cm.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end
function cm.thfilter1(c)
return c:IsType(TYPE_PENDULUM) and c:IsLevelBelow(4)
......
......@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_SPSUMMON_SUCCESS)
e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION and Duel.IsPlayerCanDraw(tp,1) and Duel.GetFlagEffect(tp,m)==0
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) and Duel.IsPlayerCanDraw(tp,1) and Duel.GetFlagEffect(tp,m)==0
end)
e0:SetOperation(cm.skipop)
c:RegisterEffect(e0)
......
......@@ -9,7 +9,7 @@ function cm.initial_effect(c)
e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_SPSUMMON_SUCCESS)
e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION and Duel.IsExistingMatchingCard(cm.f,tp,0,LOCATION_ONFIELD,1,nil) and Duel.GetFlagEffect(tp,m)==0
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) and Duel.IsExistingMatchingCard(cm.f,tp,0,LOCATION_ONFIELD,1,nil) and Duel.GetFlagEffect(tp,m)==0
end)
e0:SetOperation(cm.tdop)
c:RegisterEffect(e0)
......
......@@ -10,7 +10,7 @@ function cm.initial_effect(c)
e0:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e0:SetCode(EVENT_SPSUMMON_SUCCESS)
e0:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION and Duel.IsExistingMatchingCard(cm.f,tp,0,LOCATION_MZONE,1,nil) and Duel.GetFlagEffect(tp,m)==0
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) and Duel.IsExistingMatchingCard(cm.f,tp,0,LOCATION_MZONE,1,nil) and Duel.GetFlagEffect(tp,m)==0
end)
e0:SetOperation(cm.tdop)
c:RegisterEffect(e0)
......
......@@ -32,7 +32,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_FUSION and e:GetLabel()==100
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) and e:GetLabel()==100
end)
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -56,7 +56,7 @@ function cm.spcon(e,c)
and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_MZONE,0,1,nil)
end
function cm.lmtcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM
return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end
function cm.lmtop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -34,7 +34,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e4)
end
function cm.decon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end
function cm.detg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
......
......@@ -23,7 +23,7 @@ function c46564765.initial_effect(c)
c:RegisterEffect(e2)
end
function c46564765.ngcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end
function c46564765.filter(c)
return c:IsFaceup() and not c:IsDisabled()
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment