Commit 96e06979 authored by mercury233's avatar mercury233

update

parent b489f873
...@@ -74,7 +74,7 @@ function c10000000.sumsuc(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,7 +74,7 @@ function c10000000.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.SetChainLimitTillChainEnd(aux.FALSE) Duel.SetChainLimitTillChainEnd(aux.FALSE)
end end
function c10000000.tgcon(e,tp,eg,ep,ev,re,r,rp) function c10000000.tgcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c10000000.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c10000000.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -81,7 +81,7 @@ function c10000020.sumsuc(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,7 +81,7 @@ function c10000020.sumsuc(e,tp,eg,ep,ev,re,r,rp)
Duel.SetChainLimitTillChainEnd(aux.FALSE) Duel.SetChainLimitTillChainEnd(aux.FALSE)
end end
function c10000020.tgcon(e,tp,eg,ep,ev,re,r,rp) function c10000020.tgcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c10000020.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c10000020.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -16,7 +16,7 @@ function c10365322.initial_effect(c) ...@@ -16,7 +16,7 @@ function c10365322.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c10365322.descon(e,tp,eg,ep,ev,re,r,rp) function c10365322.descon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c10365322.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c10365322.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
......
...@@ -37,5 +37,5 @@ function c11067666.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,5 +37,5 @@ function c11067666.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c11067666.rmcon(e) function c11067666.rmcon(e)
local c=e:GetHandler() local c=e:GetHandler()
return bit.band(c:GetSummonType(),SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM and c:IsReason(REASON_MATERIAL) and c:IsReason(REASON_SYNCHRO) return c:IsSummonType(SUMMON_TYPE_PENDULUM) and c:IsReason(REASON_MATERIAL) and c:IsReason(REASON_SYNCHRO)
end end
...@@ -14,7 +14,7 @@ function c11877465.initial_effect(c) ...@@ -14,7 +14,7 @@ function c11877465.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c11877465.condition(e,tp,eg,ep,ev,re,r,rp) function c11877465.condition(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c11877465.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c11877465.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsAbleToDeck() end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsAbleToDeck() end
......
...@@ -28,7 +28,7 @@ end ...@@ -28,7 +28,7 @@ end
c12744567.xyz_number=101 c12744567.xyz_number=101
function c12744567.filter(c) function c12744567.filter(c)
return not c:IsType(TYPE_TOKEN) and c:IsAbleToChangeControler() return not c:IsType(TYPE_TOKEN) and c:IsAbleToChangeControler()
and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c12744567.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c12744567.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c12744567.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c12744567.filter(chkc) end
......
...@@ -38,7 +38,7 @@ function c13035077.initial_effect(c) ...@@ -38,7 +38,7 @@ function c13035077.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c13035077.indtg(e,c) function c13035077.indtg(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and c:IsSetCard(0xf9) return c:IsSummonType(SUMMON_TYPE_ADVANCE) and c:IsSetCard(0xf9)
end end
function c13035077.indct(e,re,r,rp) function c13035077.indct(e,re,r,rp)
if bit.band(r,REASON_BATTLE)~=0 then if bit.band(r,REASON_BATTLE)~=0 then
......
...@@ -121,7 +121,7 @@ function c13073850.lvop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -121,7 +121,7 @@ function c13073850.lvop2(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c13073850.immcon(e) function c13073850.immcon(e)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_NORMAL)==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():GetSummonType()==SUMMON_TYPE_ADVANCE and e:GetLabel()==1
......
...@@ -32,7 +32,7 @@ function c15545291.initial_effect(c) ...@@ -32,7 +32,7 @@ function c15545291.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c15545291.otfilter(c) function c15545291.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c15545291.otcon(e,c,minc) function c15545291.otcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
......
...@@ -24,7 +24,7 @@ function c16304628.initial_effect(c) ...@@ -24,7 +24,7 @@ function c16304628.initial_effect(c)
end end
c16304628.material_setcode=0x8 c16304628.material_setcode=0x8
function c16304628.atkcon(e,tp,eg,ep,ev,re,r,rp) function c16304628.atkcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c16304628.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c16304628.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
......
...@@ -48,7 +48,7 @@ function c16691074.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c16691074.atkop(e,tp,eg,ep,ev,re,r,rp)
end end
function c16691074.spcon(e,tp,eg,ep,ev,re,r,rp) function c16691074.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and bit.band(c:GetSummonType(),SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_XYZ)
end end
function c16691074.spfilter2(c,e,tp) function c16691074.spfilter2(c,e,tp)
return c:IsSetCard(0x99) and not c:IsCode(16691074) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x99) and not c:IsCode(16691074) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -13,7 +13,7 @@ function c18816758.initial_effect(c) ...@@ -13,7 +13,7 @@ function c18816758.initial_effect(c)
end end
function c18816758.cfilter(c) function c18816758.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x100a) return c:IsFaceup() and c:IsSetCard(0x100a)
and bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and c:IsAbleToHandAsCost() and c:IsSummonType(SUMMON_TYPE_ADVANCE) and c:IsAbleToHandAsCost()
end end
function c18816758.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c18816758.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c18816758.cfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c18816758.cfilter,tp,LOCATION_MZONE,0,1,nil) end
......
...@@ -77,7 +77,7 @@ function c18897163.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +77,7 @@ function c18897163.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c18897163.xyzcon(e,tp,eg,ep,ev,re,r,rp) function c18897163.xyzcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c18897163.xyzfilter(c) function c18897163.xyzfilter(c)
return c:IsFaceup() and c:IsType(TYPE_PENDULUM) and c:IsSetCard(0xaf) return c:IsFaceup() and c:IsType(TYPE_PENDULUM) and c:IsSetCard(0xaf)
......
...@@ -38,5 +38,5 @@ function c19870120.sumlimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -38,5 +38,5 @@ function c19870120.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:IsLocation(LOCATION_EXTRA) return c:IsLocation(LOCATION_EXTRA)
end end
function c19870120.target(e,c) function c19870120.target(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
...@@ -12,7 +12,7 @@ function c19932396.initial_effect(c) ...@@ -12,7 +12,7 @@ function c19932396.initial_effect(c)
end end
function c19932396.cfilter(c) function c19932396.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x100a) return c:IsFaceup() and c:IsSetCard(0x100a)
and bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and c:IsAbleToHandAsCost() and c:IsSummonType(SUMMON_TYPE_ADVANCE) and c:IsAbleToHandAsCost()
end end
function c19932396.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c19932396.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c19932396.cfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c19932396.cfilter,tp,LOCATION_MZONE,0,1,nil) end
......
...@@ -11,7 +11,7 @@ function c20140382.initial_effect(c) ...@@ -11,7 +11,7 @@ function c20140382.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c20140382.cfilter(c) function c20140382.cfilter(c)
return c:IsFaceup() and c:IsLevelAbove(7) and bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsFaceup() and c:IsLevelAbove(7) and c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c20140382.condition(e,tp,eg,ep,ev,re,r,rp) function c20140382.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c20140382.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c20140382.cfilter,tp,LOCATION_MZONE,0,1,nil)
......
...@@ -23,7 +23,7 @@ function c20174189.valcheck(e,c) ...@@ -23,7 +23,7 @@ function c20174189.valcheck(e,c)
e:SetLabel(flag) e:SetLabel(flag)
end end
function c20174189.regcon(e,tp,eg,ep,ev,re,r,rp) function c20174189.regcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
and e:GetLabelObject():GetLabel()~=0 and e:GetLabelObject():GetLabel()~=0
end end
function c20174189.regop(e,tp,eg,ep,ev,re,r,rp) function c20174189.regop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -133,7 +133,7 @@ end ...@@ -133,7 +133,7 @@ end
function c20366274.descon(e,tp,eg,ep,ev,re,r,rp) function c20366274.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
return bc and bit.band(bc:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return bc and bc:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c20366274.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c20366274.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -19,7 +19,7 @@ function c20590784.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -19,7 +19,7 @@ function c20590784.target(e,tp,eg,ep,ev,re,r,rp,chk)
local at=Duel.GetAttacker() local at=Duel.GetAttacker()
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) if chk==0 then return Duel.IsPlayerCanDraw(tp,1)
and at:IsOnField() and at:GetAttack()>=Duel.GetLP(tp) and at:IsOnField() and at:GetAttack()>=Duel.GetLP(tp)
and bit.band(at:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL end and at:IsSummonType(SUMMON_TYPE_SPECIAL) end
end end
function c20590784.filter(c,e,tp) function c20590784.filter(c,e,tp)
return c:IsSetCard(0xa3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xa3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -26,7 +26,7 @@ function c21249921.initial_effect(c) ...@@ -26,7 +26,7 @@ function c21249921.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c21249921.eqcon(e,tp,eg,ep,ev,re,r,rp) function c21249921.eqcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SYNCHRO)==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c21249921.filter(c) function c21249921.filter(c)
return c:IsLevelBelow(3) and c:IsSetCard(0x29) and c:IsRace(RACE_DRAGON) and not c:IsForbidden() return c:IsLevelBelow(3) and c:IsSetCard(0x29) and c:IsRace(RACE_DRAGON) and not c:IsForbidden()
......
...@@ -84,7 +84,7 @@ function c21377582.valcheck(e,c) ...@@ -84,7 +84,7 @@ function c21377582.valcheck(e,c)
e:SetLabel(typ) e:SetLabel(typ)
end end
function c21377582.regcon(e,tp,eg,ep,ev,re,r,rp) function c21377582.regcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c21377582.regop(e,tp,eg,ep,ev,re,r,rp) function c21377582.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -112,7 +112,7 @@ function c21377582.efilter(e,te) ...@@ -112,7 +112,7 @@ function c21377582.efilter(e,te)
return te:IsActiveType(e:GetLabel()) and te:GetOwner()~=e:GetOwner() return te:IsActiveType(e:GetLabel()) and te:GetOwner()~=e:GetOwner()
end end
function c21377582.descon(e,tp,eg,ep,ev,re,r,rp) function c21377582.descon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c21377582.costfilter(c) function c21377582.costfilter(c)
return c:IsType(TYPE_CONTINUOUS) and c:IsAbleToRemoveAsCost() return c:IsType(TYPE_CONTINUOUS) and c:IsAbleToRemoveAsCost()
......
...@@ -18,7 +18,7 @@ function c21672573.initial_effect(c) ...@@ -18,7 +18,7 @@ function c21672573.initial_effect(c)
end end
function c21672573.tdcon1(e,tp,eg,ep,ev,re,r,rp) function c21672573.tdcon1(e,tp,eg,ep,ev,re,r,rp)
return eg:GetFirst()~=e:GetHandler() and ep==tp return eg:GetFirst()~=e:GetHandler() and ep==tp
and bit.band(eg:GetFirst():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and eg:GetFirst():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c21672573.tdcon2(e,tp,eg,ep,ev,re,r,rp) function c21672573.tdcon2(e,tp,eg,ep,ev,re,r,rp)
return eg:GetFirst():GetMaterialCount()~=0 and ep==tp return eg:GetFirst():GetMaterialCount()~=0 and ep==tp
......
...@@ -23,7 +23,7 @@ function c22382087.initial_effect(c) ...@@ -23,7 +23,7 @@ function c22382087.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c22382087.cfilter(c) function c22382087.cfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and c:IsAbleToHandAsCost() return c:IsSummonType(SUMMON_TYPE_ADVANCE) and c:IsAbleToHandAsCost()
end end
function c22382087.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c22382087.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c22382087.cfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c22382087.cfilter,tp,LOCATION_MZONE,0,1,nil) end
......
...@@ -39,7 +39,7 @@ function c22499034.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -39,7 +39,7 @@ function c22499034.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 c22499034.thcon(e,tp,eg,ep,ev,re,r,rp) function c22499034.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and rp~=tp return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE) and rp~=tp
end end
function c22499034.thfilter(c,tp) function c22499034.thfilter(c,tp)
return c:IsSetCard(0xf9) and c:GetType()==0x20002 return c:IsSetCard(0xf9) and c:GetType()==0x20002
......
...@@ -40,7 +40,7 @@ function c23064604.initial_effect(c) ...@@ -40,7 +40,7 @@ function c23064604.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c23064604.otfilter(c) function c23064604.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c23064604.otcon(e,c,minc) function c23064604.otcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
......
...@@ -32,7 +32,7 @@ function c23689697.initial_effect(c) ...@@ -32,7 +32,7 @@ function c23689697.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c23689697.otfilter(c) function c23689697.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c23689697.otcon(e,c,minc) function c23689697.otcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
......
...@@ -29,7 +29,7 @@ function c24348804.initial_effect(c) ...@@ -29,7 +29,7 @@ function c24348804.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c24348804.cfilter(c) function c24348804.cfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c24348804.condition(e,tp,eg,ep,ev,re,r,rp) function c24348804.condition(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(c24348804.cfilter,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(c24348804.cfilter,tp,LOCATION_MZONE,0,1,nil)
...@@ -65,5 +65,5 @@ function c24348804.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,5 +65,5 @@ function c24348804.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c24348804.distg(e,c) function c24348804.distg(e,c)
return c:IsStatus(STATUS_SPSUMMON_TURN) and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsStatus(STATUS_SPSUMMON_TURN) and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
...@@ -47,7 +47,7 @@ function c24550676.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c24550676.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker()==e:GetHandler() and Duel.GetAttackTarget() return Duel.GetAttacker()==e:GetHandler() and Duel.GetAttackTarget()
end end
function c24550676.filter(c) function c24550676.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c24550676.target(e,tp,eg,ep,ev,re,r,rp,chk) function c24550676.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c24550676.filter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c24550676.filter,tp,0,LOCATION_MZONE,1,nil) end
......
...@@ -38,7 +38,7 @@ function c24672164.matcheck(e,c) ...@@ -38,7 +38,7 @@ function c24672164.matcheck(e,c)
end end
function c24672164.thcon(e,tp,eg,ep,ev,re,r,rp) function c24672164.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_FUSION)
end end
function c24672164.filter(c) function c24672164.filter(c)
return c:IsSetCard(0x9b) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x9b) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
......
...@@ -58,7 +58,7 @@ function c2530830.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function c2530830.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return rp==1-tp and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) return rp==1-tp and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE)
and c:IsReason(REASON_DESTROY) and (c:IsReason(REASON_EFFECT) or (c:IsReason(REASON_BATTLE) and Duel.GetAttacker():IsControler(1-tp))) and c:IsReason(REASON_DESTROY) and (c:IsReason(REASON_EFFECT) or (c:IsReason(REASON_BATTLE) and Duel.GetAttacker():IsControler(1-tp)))
and bit.band(c:GetSummonType(),SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ and c:IsSummonType(SUMMON_TYPE_XYZ)
end end
function c2530830.filter(c,e,tp) function c2530830.filter(c,e,tp)
return c:IsCode(18963306) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(18963306) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -28,7 +28,7 @@ function c25415052.initial_effect(c) ...@@ -28,7 +28,7 @@ function c25415052.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c25415052.tdcon(e,tp,eg,ep,ev,re,r,rp) function c25415052.tdcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c25415052.tdfilter(c) function c25415052.tdfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToDeck() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToDeck()
......
...@@ -24,7 +24,7 @@ function c25682811.initial_effect(c) ...@@ -24,7 +24,7 @@ function c25682811.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c25682811.eqcon(e,tp,eg,ep,ev,re,r,rp) function c25682811.eqcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SYNCHRO)==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c25682811.filter(c) function c25682811.filter(c)
return c:IsSetCard(0x29) and c:IsRace(RACE_DRAGON) and not c:IsForbidden() return c:IsSetCard(0x29) and c:IsRace(RACE_DRAGON) and not c:IsForbidden()
......
...@@ -67,7 +67,7 @@ function c26400609.hspop(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,7 +67,7 @@ function c26400609.hspop(e,tp,eg,ep,ev,re,r,rp)
end end
function c26400609.retcon(e,tp,eg,ep,ev,re,r,rp) function c26400609.retcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
and bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c26400609.rettg(e,tp,eg,ep,ev,re,r,rp,chk) function c26400609.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -43,7 +43,7 @@ function c26781870.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -43,7 +43,7 @@ function c26781870.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c26781870.filter(c) function c26781870.filter(c)
return c:GetSummonLocation()==LOCATION_HAND and c:IsAbleToHand() return c:GetSummonLocation()==LOCATION_HAND and c:IsAbleToHand()
and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c26781870.target(e,tp,eg,ep,ev,re,r,rp,chk) function c26781870.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c26781870.filter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c26781870.filter,tp,0,LOCATION_MZONE,1,nil) end
......
...@@ -14,7 +14,7 @@ function c26822796.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -14,7 +14,7 @@ function c26822796.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)==0 return Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)==0
end end
function c26822796.filter(c) function c26822796.filter(c)
return c:IsFaceup() and bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c26822796.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c26822796.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c26822796.filter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c26822796.filter(chkc) end
......
...@@ -69,14 +69,14 @@ function c27279764.ttop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -69,14 +69,14 @@ function c27279764.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL) Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
end end
function c27279764.immcon(e) function c27279764.immcon(e)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_NORMAL)==SUMMON_TYPE_NORMAL return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c27279764.efilter(e,te) function c27279764.efilter(e,te)
if te:IsActiveType(TYPE_SPELL+TYPE_TRAP) then return true if te:IsActiveType(TYPE_SPELL+TYPE_TRAP) then return true
else return aux.qlifilter(e,te) end else return aux.qlifilter(e,te) end
end end
function c27279764.adtg(e,c) function c27279764.adtg(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c27279764.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c27279764.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE+LOCATION_HAND)>0 end if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE+LOCATION_HAND)>0 end
......
...@@ -37,7 +37,7 @@ function c29169993.initial_effect(c) ...@@ -37,7 +37,7 @@ function c29169993.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c29169993.valcon(e,re,r,rp) function c29169993.valcon(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 and bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return r,REASON_BATTLE)~=0 and bit.band(e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c29169993.thcon(e,tp,eg,ep,ev,re,r,rp) function c29169993.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
......
...@@ -39,7 +39,7 @@ function c29343734.initial_effect(c) ...@@ -39,7 +39,7 @@ function c29343734.initial_effect(c)
end end
c29343734.material_setcode=0x8 c29343734.material_setcode=0x8
function c29343734.retcon(e,tp,eg,ep,ev,re,r,rp) function c29343734.retcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c29343734.rettg(e,tp,eg,ep,ev,re,r,rp,chk) function c29343734.rettg(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 c29455728.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,7 +31,7 @@ function c29455728.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if e:GetHandler():GetSequence()<5 then ft=ft+1 end if e:GetHandler():GetSequence()<5 then ft=ft+1 end
return ct>0 and ft>=ct and not Duel.IsPlayerAffectedByEffect(tp,59822133) return ct>0 and ft>=ct and not Duel.IsPlayerAffectedByEffect(tp,59822133)
and bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION and e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
and g:FilterCount(c29455728.mgfilter,nil,e,tp,e:GetHandler(),g)==ct and g:FilterCount(c29455728.mgfilter,nil,e,tp,e:GetHandler(),g)==ct
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,g:GetCount(),0,0)
......
...@@ -34,7 +34,7 @@ function c30086349.mfilter2(c) ...@@ -34,7 +34,7 @@ function c30086349.mfilter2(c)
return c:IsRace(RACE_DRAGON) and c:GetLevel()==6 return c:IsRace(RACE_DRAGON) and c:GetLevel()==6
end end
function c30086349.damcon(e,tp,eg,ep,ev,re,r,rp) function c30086349.damcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c30086349.damfilter(c) function c30086349.damfilter(c)
return c:IsFusionSetCard(0x3b) and c:GetBaseAttack()>0 and c:IsAbleToGrave() return c:IsFusionSetCard(0x3b) and c:GetBaseAttack()>0 and c:IsAbleToGrave()
......
...@@ -38,7 +38,7 @@ function c30194529.initial_effect(c) ...@@ -38,7 +38,7 @@ function c30194529.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c30194529.drcon(e,tp,eg,ep,ev,re,r,rp) function c30194529.drcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_LINK)==SUMMON_TYPE_LINK return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end end
function c30194529.drfilter(c) function c30194529.drfilter(c)
return c:IsFaceup() and c:IsSetCard(0xfd) return c:IsFaceup() and c:IsSetCard(0xfd)
......
...@@ -20,7 +20,7 @@ function c30548775.initial_effect(c) ...@@ -20,7 +20,7 @@ function c30548775.initial_effect(c)
end end
function c30548775.filter(c) function c30548775.filter(c)
return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsReason(REASON_DESTROY) and c:IsType(TYPE_FUSION) return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsReason(REASON_DESTROY) and c:IsType(TYPE_FUSION)
and bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION and c:IsSummonType(SUMMON_TYPE_FUSION)
end end
function c30548775.condition(e,tp,eg,ep,ev,re,r,rp,chk) function c30548775.condition(e,tp,eg,ep,ev,re,r,rp,chk)
return eg:IsExists(c30548775.filter,1,nil) return eg:IsExists(c30548775.filter,1,nil)
......
...@@ -16,7 +16,7 @@ function c30845999.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c30845999.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 c30845999.filter(c) function c30845999.filter(c)
return c:IsFaceup() and c:IsSetCard(0xaa) and bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)==SUMMON_TYPE_NORMAL return c:IsFaceup() and c:IsSetCard(0xaa) and c:IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c30845999.target(e,tp,eg,ep,ev,re,r,rp,chk) function c30845999.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c30845999.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c30845999.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
...@@ -12,7 +12,7 @@ function c32752319.initial_effect(c) ...@@ -12,7 +12,7 @@ function c32752319.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c32752319.atkcon(e,tp,eg,ep,ev,re,r,rp) function c32752319.atkcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c32752319.atkop(e,tp,eg,ep,ev,re,r,rp) function c32752319.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -37,7 +37,7 @@ function c33698022.evop(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function c33698022.evop(e,tp,eg,ep,ev,re,r,rp)
Duel.RaiseSingleEvent(e:GetHandler(),EVENT_CUSTOM+33698022,re,r,rp,ep,ev) Duel.RaiseSingleEvent(e:GetHandler(),EVENT_CUSTOM+33698022,re,r,rp,ep,ev)
end end
function c33698022.filter(c) function c33698022.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsAbleToHand() return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsAbleToHand()
end end
function c33698022.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33698022.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 c33698022.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c33698022.filter(chkc) end
......
...@@ -20,7 +20,7 @@ function c34449261.filter2(c,tp,tc) ...@@ -20,7 +20,7 @@ function c34449261.filter2(c,tp,tc)
and Duel.IsExistingMatchingCard(c34449261.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,tg) and Duel.IsExistingMatchingCard(c34449261.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,tg)
end end
function c34449261.desfilter(c,tg) function c34449261.desfilter(c,tg)
return not tg:IsContains(c) and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return not tg:IsContains(c) and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c34449261.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c34449261.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
......
...@@ -16,7 +16,7 @@ function c34761062.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c34761062.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
return c:IsDualState() and Duel.GetAttacker()==c return c:IsDualState() and Duel.GetAttacker()==c
and bc and bit.band(bc:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and bc:IsAbleToRemove() and bc and bc:IsSummonType(SUMMON_TYPE_SPECIAL) and bc:IsAbleToRemove()
end end
function c34761062.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c34761062.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -17,7 +17,7 @@ function c35073065.initial_effect(c) ...@@ -17,7 +17,7 @@ function c35073065.initial_effect(c)
end end
function c35073065.spcon(e,tp,eg,ep,ev,re,r,rp) function c35073065.spcon(e,tp,eg,ep,ev,re,r,rp)
local ec=eg:GetFirst() local ec=eg:GetFirst()
return ep==tp and bit.band(ec:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return ep==tp and ec:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c35073065.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c35073065.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
......
...@@ -49,7 +49,7 @@ end ...@@ -49,7 +49,7 @@ end
function c3576031.checkop(e,tp,eg,ep,ev,re,r,rp) function c3576031.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
while tc do while tc do
if tc:IsSetCard(0xea) and bit.band(tc:GetSummonType(),SUMMON_TYPE_SYNCHRO)==SUMMON_TYPE_SYNCHRO then if tc:IsSetCard(0xea) and tc:IsSummonType(SUMMON_TYPE_SYNCHRO) then
local p=tc:GetSummonPlayer() local p=tc:GetSummonPlayer()
c3576031[p]=c3576031[p]+1 c3576031[p]=c3576031[p]+1
end end
......
...@@ -74,7 +74,7 @@ function c3606728.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,7 +74,7 @@ function c3606728.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ
end end
function c3606728.atkfilter(c) function c3606728.atkfilter(c)
return c:IsFaceup() and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c3606728.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c3606728.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c3606728.atkfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c3606728.atkfilter(chkc) end
......
...@@ -24,7 +24,7 @@ function c3629090.initial_effect(c) ...@@ -24,7 +24,7 @@ function c3629090.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c3629090.thcon(e,tp,eg,ep,ev,re,r,rp) function c3629090.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c3629090.thfilter(c) function c3629090.thfilter(c)
return c:GetType()==0x82 and c:IsAbleToHand() return c:GetType()==0x82 and c:IsAbleToHand()
......
...@@ -14,7 +14,7 @@ function c36352429.initial_effect(c) ...@@ -14,7 +14,7 @@ function c36352429.initial_effect(c)
end end
function c36352429.condition(e,tp,eg,ep,ev,re,r,rp) function c36352429.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
and bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c36352429.target(e,tp,eg,ep,ev,re,r,rp,chk) function c36352429.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c36352429.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c36352429.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -22,7 +22,7 @@ function c3642509.initial_effect(c) ...@@ -22,7 +22,7 @@ function c3642509.initial_effect(c)
end end
c3642509.material_setcode=0x8 c3642509.material_setcode=0x8
function c3642509.atkcon(e,tp,eg,ep,ev,re,r,rp) function c3642509.atkcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c3642509.atkop(e,tp,eg,ep,ev,re,r,rp) function c3642509.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -29,7 +29,7 @@ function c37192109.initial_effect(c) ...@@ -29,7 +29,7 @@ function c37192109.initial_effect(c)
end end
function c37192109.rmfilter(c) function c37192109.rmfilter(c)
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsAbleToRemove() return c:IsPosition(POS_FACEUP_ATTACK) and c:IsAbleToRemove()
and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c37192109.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c37192109.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c37192109.rmfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c37192109.rmfilter(chkc) end
......
...@@ -23,7 +23,7 @@ function c3752422.initial_effect(c) ...@@ -23,7 +23,7 @@ function c3752422.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c3752422.lvfilter(c) function c3752422.lvfilter(c)
return c:IsFaceup() and bit.band(c:GetSummonType(),SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM and c:GetLevel()>0 return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_PENDULUM) and c:GetLevel()>0
end end
function c3752422.lvtg(e,tp,eg,ep,ev,re,r,rp,chk) function c3752422.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c3752422.lvfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c3752422.lvfilter,tp,LOCATION_MZONE,0,1,nil) end
......
...@@ -108,7 +108,7 @@ function c37991342.lvop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -108,7 +108,7 @@ function c37991342.lvop2(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c37991342.immcon(e) function c37991342.immcon(e)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_NORMAL)==SUMMON_TYPE_NORMAL return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c37991342.desfilter(c) function c37991342.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
...@@ -39,7 +39,7 @@ function c3912064.posfilter(c) ...@@ -39,7 +39,7 @@ function c3912064.posfilter(c)
return c:IsDefensePos() or c:IsFacedown() return c:IsDefensePos() or c:IsFacedown()
end end
function c3912064.poscon(e,tp,eg,ep,ev,re,r,rp) function c3912064.poscon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c3912064.postg(e,tp,eg,ep,ev,re,r,rp,chk) function c3912064.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c3912064.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c3912064.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
...@@ -35,7 +35,7 @@ function c39618799.initial_effect(c) ...@@ -35,7 +35,7 @@ function c39618799.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c39618799.tgcon(e,tp,eg,ep,ev,re,r,rp) function c39618799.tgcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c39618799.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c39618799.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 end if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0 end
......
...@@ -58,7 +58,7 @@ function c40061558.ttop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -58,7 +58,7 @@ function c40061558.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL) Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
end end
function c40061558.immcon(e) function c40061558.immcon(e)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_NORMAL)==SUMMON_TYPE_NORMAL return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c40061558.efilter(e,te) function c40061558.efilter(e,te)
if te:IsActiveType(TYPE_SPELL+TYPE_TRAP) then return true if te:IsActiveType(TYPE_SPELL+TYPE_TRAP) then return true
......
...@@ -16,5 +16,5 @@ function c40502912.initial_effect(c) ...@@ -16,5 +16,5 @@ function c40502912.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c40502912.tgcon(e) function c40502912.tgcon(e)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end end
...@@ -41,10 +41,10 @@ function c41209827.ffilter(c) ...@@ -41,10 +41,10 @@ function c41209827.ffilter(c)
return c:IsFusionAttribute(ATTRIBUTE_DARK) and c:IsOnField() and not c:IsType(TYPE_TOKEN) return c:IsFusionAttribute(ATTRIBUTE_DARK) and c:IsOnField() and not c:IsType(TYPE_TOKEN)
end end
function c41209827.atkcon(e,tp,eg,ep,ev,re,r,rp) function c41209827.atkcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c41209827.atkfilter(c) function c41209827.atkfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsFaceup() return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsFaceup()
end end
function c41209827.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function c41209827.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c41209827.atkfilter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c41209827.atkfilter,tp,0,LOCATION_MZONE,1,nil) end
...@@ -96,10 +96,10 @@ function c41209827.copyop(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,10 +96,10 @@ function c41209827.copyop(e,tp,eg,ep,ev,re,r,rp)
end end
function c41209827.descon(e,tp,eg,ep,ev,re,r,rp) function c41209827.descon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_FUSION)
end end
function c41209827.desfilter(c) function c41209827.desfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c41209827.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c41209827.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c41209827.desfilter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c41209827.desfilter,tp,0,LOCATION_MZONE,1,nil) end
......
...@@ -14,7 +14,7 @@ function c41442341.initial_effect(c) ...@@ -14,7 +14,7 @@ function c41442341.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c41442341.spcon(e,tp,eg,ep,ev,re,r,rp) function c41442341.spcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c41442341.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c41442341.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,2000) end if chk==0 then return Duel.CheckLPCost(tp,2000) end
......
...@@ -26,7 +26,7 @@ function c4149689.initial_effect(c) ...@@ -26,7 +26,7 @@ function c4149689.initial_effect(c)
end end
function c4149689.aclimit(e,re,tp) function c4149689.aclimit(e,re,tp)
local rc=re:GetHandler() local rc=re:GetHandler()
return re:IsActiveType(TYPE_MONSTER) and bit.band(rc:GetSummonType(),SUMMON_TYPE_FLIP)==SUMMON_TYPE_FLIP and rc:IsLevelBelow(2) return re:IsActiveType(TYPE_MONSTER) and rc:IsSummonType(SUMMON_TYPE_FLIP) and rc:IsLevelBelow(2)
end end
function c4149689.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c4149689.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:GetFirst():IsLevelBelow(2) end if chk==0 then return eg:GetFirst():IsLevelBelow(2) end
......
...@@ -16,7 +16,7 @@ function c41902352.initial_effect(c) ...@@ -16,7 +16,7 @@ function c41902352.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c41902352.synlimit(e) function c41902352.synlimit(e)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c41902352.spcost(e,c,tp,sumtype) function c41902352.spcost(e,c,tp,sumtype)
return sumtype~=SUMMON_TYPE_SPECIAL+182 return sumtype~=SUMMON_TYPE_SPECIAL+182
......
...@@ -15,7 +15,7 @@ function c42598242.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -15,7 +15,7 @@ function c42598242.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end end
function c42598242.filter(c) function c42598242.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c42598242.target(e,tp,eg,ep,ev,re,r,rp,chk) function c42598242.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c42598242.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c42598242.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
...@@ -14,7 +14,7 @@ function c43845801.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -14,7 +14,7 @@ function c43845801.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsAbleToEnterBP() return Duel.IsAbleToEnterBP()
end end
function c43845801.filter(c) function c43845801.filter(c)
return c:IsFaceup() and bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_FUSION)
and c:IsCode(23995346) and not c:IsHasEffect(EFFECT_EXTRA_ATTACK) and c:IsCode(23995346) and not c:IsHasEffect(EFFECT_EXTRA_ATTACK)
end end
function c43845801.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c43845801.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -48,7 +48,7 @@ function c44874522.valcheck(e,c) ...@@ -48,7 +48,7 @@ function c44874522.valcheck(e,c)
e:SetLabel(flag) e:SetLabel(flag)
end end
function c44874522.regcon(e,tp,eg,ep,ev,re,r,rp) function c44874522.regcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c44874522.regop(e,tp,eg,ep,ev,re,r,rp) function c44874522.regop(e,tp,eg,ep,ev,re,r,rp)
local flag=e:GetLabelObject():GetLabel() local flag=e:GetLabelObject():GetLabel()
......
...@@ -13,7 +13,7 @@ function c45222299.initial_effect(c) ...@@ -13,7 +13,7 @@ function c45222299.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c45222299.condition(e,tp,eg,ep,ev,re,r,rp) function c45222299.condition(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c45222299.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c45222299.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -54,7 +54,7 @@ function c45533023.descost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -54,7 +54,7 @@ function c45533023.descost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c45533023.filter(c) function c45533023.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c45533023.destg2(e,tp,eg,ep,ev,re,r,rp,chk) function c45533023.destg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c45533023.filter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c45533023.filter,tp,0,LOCATION_MZONE,1,nil) end
......
...@@ -39,7 +39,7 @@ function c4591250.indtg(e,c) ...@@ -39,7 +39,7 @@ function c4591250.indtg(e,c)
end end
function c4591250.spcon(e,tp,eg,ep,ev,re,r,rp) function c4591250.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return c:IsSummonType(SUMMON_TYPE_FUSION)
and (c:IsReason(REASON_BATTLE) or (c:GetReasonPlayer()~=tp and c:IsReason(REASON_EFFECT))) and (c:IsReason(REASON_BATTLE) or (c:GetReasonPlayer()~=tp and c:IsReason(REASON_EFFECT)))
and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousPosition(POS_FACEUP)
end end
......
...@@ -25,7 +25,7 @@ function c464362.initial_effect(c) ...@@ -25,7 +25,7 @@ function c464362.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c464362.descon(e,tp,eg,ep,ev,re,r,rp) function c464362.descon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c464362.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c464362.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() end
......
...@@ -29,7 +29,7 @@ function c47611119.filter(c) ...@@ -29,7 +29,7 @@ function c47611119.filter(c)
return c:IsSetCard(0x1047) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return c:IsSetCard(0x1047) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end end
function c47611119.ctfilter(c) function c47611119.ctfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c47611119.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c47611119.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c47611119.filter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil) if chk==0 then return Duel.IsExistingMatchingCard(c47611119.filter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil)
......
...@@ -49,7 +49,7 @@ function c47679935.efilter(e,ct) ...@@ -49,7 +49,7 @@ function c47679935.efilter(e,ct)
return p==tp and te:IsHasCategory(CATEGORY_FUSION_SUMMON) return p==tp and te:IsHasCategory(CATEGORY_FUSION_SUMMON)
end end
function c47679935.limfilter(c,tp) function c47679935.limfilter(c,tp)
return c:GetSummonPlayer()==tp and bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return c:GetSummonPlayer()==tp and c:IsSummonType(SUMMON_TYPE_FUSION)
end end
function c47679935.limcon(e,tp,eg,ep,ev,re,r,rp) function c47679935.limcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c47679935.limfilter,1,nil,tp) return eg:IsExists(c47679935.limfilter,1,nil,tp)
......
...@@ -25,7 +25,7 @@ function c48716527.initial_effect(c) ...@@ -25,7 +25,7 @@ function c48716527.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c48716527.cfilter(c) function c48716527.cfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c48716527.actcon(e,tp,eg,ep,ev,re,r,rp) function c48716527.actcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)==0 return Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)==0
......
...@@ -30,7 +30,7 @@ function c48739166.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,7 +30,7 @@ function c48739166.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c48739166.filter(c) function c48739166.filter(c)
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsAbleToChangeControler() return c:IsPosition(POS_FACEUP_ATTACK) and c:IsAbleToChangeControler()
and not c:IsType(TYPE_TOKEN) and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and not c:IsType(TYPE_TOKEN) and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c48739166.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c48739166.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c48739166.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c48739166.filter(chkc) end
......
...@@ -26,7 +26,7 @@ function c49820233.ffilter(c) ...@@ -26,7 +26,7 @@ function c49820233.ffilter(c)
return c:IsFusionAttribute(ATTRIBUTE_DARK) and c:IsLevelAbove(5) return c:IsFusionAttribute(ATTRIBUTE_DARK) and c:IsLevelAbove(5)
end end
function c49820233.damcon(e,tp,eg,ep,ev,re,r,rp) function c49820233.damcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c49820233.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c49820233.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)>0 end if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)>0 end
......
...@@ -47,7 +47,7 @@ function c50933533.valcheck(e,c) ...@@ -47,7 +47,7 @@ function c50933533.valcheck(e,c)
e:SetLabel(flag) e:SetLabel(flag)
end end
function c50933533.regcon(e,tp,eg,ep,ev,re,r,rp) function c50933533.regcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c50933533.regop(e,tp,eg,ep,ev,re,r,rp) function c50933533.regop(e,tp,eg,ep,ev,re,r,rp)
local flag=e:GetLabelObject():GetLabel() local flag=e:GetLabelObject():GetLabel()
......
...@@ -56,7 +56,7 @@ function c51194046.splimit(e,c) ...@@ -56,7 +56,7 @@ function c51194046.splimit(e,c)
end end
function c51194046.checkop(e,tp,eg,ep,ev,re,r,rp) function c51194046.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
if bit.band(tc:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE then if tc:IsSummonType(SUMMON_TYPE_ADVANCE) then
local p=tc:GetSummonPlayer() local p=tc:GetSummonPlayer()
c51194046[p]=c51194046[p]+e:GetLabelObject():GetLabel() c51194046[p]=c51194046[p]+e:GetLabelObject():GetLabel()
end end
......
...@@ -21,7 +21,7 @@ function c52323874.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,7 +21,7 @@ function c52323874.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c52323874.filter(c) function c52323874.filter(c)
return c:IsFaceup() and c:GetBaseAttack()>0 return c:IsFaceup() and c:GetBaseAttack()>0
and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c52323874.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c52323874.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c52323874.filter(chkc) end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c52323874.filter(chkc) end
......
...@@ -28,7 +28,7 @@ function c52900000.initial_effect(c) ...@@ -28,7 +28,7 @@ function c52900000.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c52900000.thcon(e,tp,eg,ep,ev,re,r,rp) function c52900000.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c52900000.spfilter(c,e,tp) function c52900000.spfilter(c,e,tp)
return c:IsType(TYPE_SPIRIT) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) return c:IsType(TYPE_SPIRIT) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
......
...@@ -68,7 +68,7 @@ function c53804307.hspop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +68,7 @@ function c53804307.hspop(e,tp,eg,ep,ev,re,r,rp)
end end
function c53804307.retcon(e,tp,eg,ep,ev,re,r,rp) function c53804307.retcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
and bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c53804307.rettg(e,tp,eg,ep,ev,re,r,rp,chk) function c53804307.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -9,7 +9,7 @@ function c54094821.initial_effect(c) ...@@ -9,7 +9,7 @@ function c54094821.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c54094821.cfilter(c) function c54094821.cfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return c:IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c54094821.condition(e,tp,eg,ep,ev,re,r,rp) function c54094821.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c54094821.cfilter,1,nil) return eg:IsExists(c54094821.cfilter,1,nil)
......
...@@ -68,7 +68,7 @@ function c54520292.descost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -68,7 +68,7 @@ function c54520292.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c54520292.filter(c) function c54520292.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c54520292.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c54520292.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c54520292.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c54520292.filter(chkc) end
......
...@@ -21,7 +21,7 @@ function c56350972.initial_effect(c) ...@@ -21,7 +21,7 @@ function c56350972.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c56350972.regcon1(e,tp,eg,ep,ev,re,r,rp) function c56350972.regcon1(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c56350972.regfilter(c) function c56350972.regfilter(c)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsPreviousLocation(LOCATION_HAND+LOCATION_DECK) return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsPreviousLocation(LOCATION_HAND+LOCATION_DECK)
......
...@@ -26,7 +26,7 @@ function c56526564.initial_effect(c) ...@@ -26,7 +26,7 @@ function c56526564.initial_effect(c)
end end
end end
function c56526564.cfilter(c) function c56526564.cfilter(c)
return c:IsType(TYPE_LINK) and bit.band(c:GetSummonType(),SUMMON_TYPE_LINK)==SUMMON_TYPE_LINK return c:IsType(TYPE_LINK) and c:IsSummonType(SUMMON_TYPE_LINK)
end end
function c56526564.condition(e,tp,eg,ep,ev,re,r,rp) function c56526564.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c56526564.cfilter,1,nil) return eg:IsExists(c56526564.cfilter,1,nil)
......
...@@ -30,7 +30,7 @@ function c56532353.costfilter(c) ...@@ -30,7 +30,7 @@ function c56532353.costfilter(c)
end end
function c56532353.atcon(e,tp,eg,ep,ev,re,r,rp) function c56532353.atcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return c:IsSummonType(SUMMON_TYPE_FUSION)
and Duel.GetAttacker()==c and c:IsChainAttackable(0) and Duel.GetAttacker()==c and c:IsChainAttackable(0)
and not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_ONFIELD,0,1,c) and not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_ONFIELD,0,1,c)
end end
......
...@@ -88,7 +88,7 @@ function c57761191.valcheck(e,c) ...@@ -88,7 +88,7 @@ function c57761191.valcheck(e,c)
e:SetLabel(typ) e:SetLabel(typ)
end end
function c57761191.regcon(e,tp,eg,ep,ev,re,r,rp) function c57761191.regcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c57761191.regop(e,tp,eg,ep,ev,re,r,rp) function c57761191.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -118,7 +118,7 @@ end ...@@ -118,7 +118,7 @@ end
function c57761191.spcon(e,tp,eg,ep,ev,re,r,rp) function c57761191.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return rp==1-tp and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) return rp==1-tp and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE)
and bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c57761191.spfilter(c,e,tp) function c57761191.spfilter(c,e,tp)
return c:IsAttribute(0xf) and c:IsType(0x802040) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsAttribute(0xf) and c:IsType(0x802040) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -39,7 +39,7 @@ function c58984738.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -39,7 +39,7 @@ function c58984738.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 c58984738.thcon(e,tp,eg,ep,ev,re,r,rp) function c58984738.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and rp~=tp return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE) and rp~=tp
end end
function c58984738.thfilter(c,tp) function c58984738.thfilter(c,tp)
return c:IsSetCard(0xf9) and c:GetType()==0x20004 return c:IsSetCard(0xf9) and c:GetType()==0x20004
......
...@@ -13,7 +13,7 @@ function c59695933.initial_effect(c) ...@@ -13,7 +13,7 @@ function c59695933.initial_effect(c)
end end
function c59695933.condition(e,tp,eg,ep,ev,re,r,rp) function c59695933.condition(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return bit.band(tc:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return tc:IsSummonType(SUMMON_TYPE_ADVANCE)
and tc:GetMaterialCount()==1 and tc:GetMaterialCount()==1
end end
function c59695933.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c59695933.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -49,7 +49,7 @@ function c59822133.negop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function c59822133.negop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) Duel.NegateActivation(ev)
end end
function c59822133.spcon(e,tp,eg,ep,ev,re,r,rp) function c59822133.spcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SYNCHRO)==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c59822133.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c59822133.spcost(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
......
...@@ -74,7 +74,7 @@ function c60954556.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,7 +74,7 @@ function c60954556.efop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c60954556.xyzcon(e,tp,eg,ep,ev,re,r,rp) function c60954556.xyzcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c60954556.xyzfilter(c) function c60954556.xyzfilter(c)
return c:IsSetCard(0xf7) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0xf7) and c:IsType(TYPE_MONSTER)
......
...@@ -31,7 +31,7 @@ function c61466310.sumlimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -31,7 +31,7 @@ function c61466310.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:IsLocation(LOCATION_EXTRA) return c:IsLocation(LOCATION_EXTRA)
end end
function c61466310.thcon(e,tp,eg,ep,ev,re,r,rp) function c61466310.thcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and bit.band(eg:GetFirst():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return ep==tp and eg:GetFirst():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c61466310.filter(c,code) function c61466310.filter(c,code)
return (c:GetAttack()==2400 or c:GetAttack()==2800) and c:GetDefense()==1000 and c:GetCode()~=code and c:IsAbleToHand() return (c:GetAttack()==2400 or c:GetAttack()==2800) and c:GetDefense()==1000 and c:GetCode()~=code and c:IsAbleToHand()
......
...@@ -37,7 +37,7 @@ function c62541668.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,7 +37,7 @@ function c62541668.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,2,2,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,2,2,REASON_COST)
end end
function c62541668.rmfilter(c) function c62541668.rmfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsAbleToRemove() return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsAbleToRemove()
end end
function c62541668.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c62541668.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetFlagEffect(62541668)==0 if chk==0 then return e:GetHandler():GetFlagEffect(62541668)==0
......
...@@ -51,7 +51,7 @@ function c62709239.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c62709239.desop(e,tp,eg,ep,ev,re,r,rp)
end end
function c62709239.spcon(e,tp,eg,ep,ev,re,r,rp) function c62709239.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and bit.band(c:GetSummonType(),SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_XYZ)
end end
function c62709239.spfilter1(c,e,tp) function c62709239.spfilter1(c,e,tp)
return c:GetLevel()>0 and c:IsSetCard(0x10db) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetLevel()>0 and c:IsSetCard(0x10db) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -116,7 +116,7 @@ function c64496451.lvop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -116,7 +116,7 @@ function c64496451.lvop2(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c64496451.immcon(e) function c64496451.immcon(e)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_NORMAL)==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():GetSummonType()==SUMMON_TYPE_ADVANCE and e:GetLabel()==1
......
...@@ -23,7 +23,7 @@ function c64880894.initial_effect(c) ...@@ -23,7 +23,7 @@ function c64880894.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c64880894.drcon(e,tp,eg,ep,ev,re,r,rp) function c64880894.drcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SYNCHRO)==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c64880894.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c64880894.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
...@@ -36,5 +36,5 @@ function c64880894.drop(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,5 +36,5 @@ function c64880894.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(p,d,REASON_EFFECT) Duel.Draw(p,d,REASON_EFFECT)
end end
function c64880894.atkfilter(e,c) function c64880894.atkfilter(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
...@@ -28,7 +28,7 @@ function c65029288.initial_effect(c) ...@@ -28,7 +28,7 @@ function c65029288.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c65029288.immcon(e,tp,eg,ep,ev,re,r,rp) function c65029288.immcon(e,tp,eg,ep,ev,re,r,rp)
return re and re:GetHandler():IsCode(24094653) and bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return re and re:GetHandler():IsCode(24094653) and e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c65029288.immop(e,tp,eg,ep,ev,re,r,rp) function c65029288.immop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -13,7 +13,7 @@ function c65612386.initial_effect(c) ...@@ -13,7 +13,7 @@ function c65612386.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c65612386.condition(e,tp,eg,ep,ev,re,r,rp) function c65612386.condition(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c65612386.cfilter(c,tp) function c65612386.cfilter(c,tp)
return c:IsType(TYPE_SPELL) and c:IsAbleToRemoveAsCost() return c:IsType(TYPE_SPELL) and c:IsAbleToRemoveAsCost()
......
...@@ -22,7 +22,7 @@ function c68304813.initial_effect(c) ...@@ -22,7 +22,7 @@ function c68304813.initial_effect(c)
end end
function c68304813.condition(e,tp,eg,ep,ev,re,r,rp) function c68304813.condition(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return bit.band(tc:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and tc:GetMaterialCount()>=2 and tc:GetSummonPlayer()==tp return tc:IsSummonType(SUMMON_TYPE_ADVANCE) and tc:GetMaterialCount()>=2 and tc:GetSummonPlayer()==tp
end end
function c68304813.target(e,tp,eg,ep,ev,re,r,rp,chk) function c68304813.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -11,7 +11,7 @@ function c68396778.initial_effect(c) ...@@ -11,7 +11,7 @@ function c68396778.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c68396778.filter(c) function c68396778.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c68396778.spfilter(c,e,tp) function c68396778.spfilter(c,e,tp)
return c:IsLevelBelow(4) and c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -53,7 +53,7 @@ function c69105797.ccon(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function c69105797.ccon(e,tp,eg,ep,ev,re,r,rp)
return c:IsPreviousPosition(POS_FACEUP) and not c:IsLocation(LOCATION_DECK) return c:IsPreviousPosition(POS_FACEUP) and not c:IsLocation(LOCATION_DECK)
end end
function c69105797.cfilter(c) function c69105797.cfilter(c)
return c:IsFaceup() and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c69105797.cop(e,tp,eg,ep,ev,re,r,rp) function c69105797.cop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -31,7 +31,7 @@ function c69230391.initial_effect(c) ...@@ -31,7 +31,7 @@ function c69230391.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c69230391.otfilter(c) function c69230391.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c69230391.otcon(e,c,minc) function c69230391.otcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
......
...@@ -32,7 +32,7 @@ function c69327790.initial_effect(c) ...@@ -32,7 +32,7 @@ function c69327790.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c69327790.otfilter(c) function c69327790.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c69327790.otcon(e,c,minc) function c69327790.otcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
......
...@@ -35,7 +35,7 @@ function c69711728.initial_effect(c) ...@@ -35,7 +35,7 @@ function c69711728.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c69711728.cfilter(c,e,tp) function c69711728.cfilter(c,e,tp)
return c:IsFaceup() and c:IsType(TYPE_FUSION) and bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return c:IsFaceup() and c:IsType(TYPE_FUSION) and c:IsSummonType(SUMMON_TYPE_FUSION)
and Duel.IsExistingTarget(c69711728.filter,tp,LOCATION_GRAVE,0,1,nil,c:GetLevel(),e,tp) and Duel.IsExistingTarget(c69711728.filter,tp,LOCATION_GRAVE,0,1,nil,c:GetLevel(),e,tp)
end end
function c69711728.filter(c,lv,e,tp) function c69711728.filter(c,lv,e,tp)
......
...@@ -40,7 +40,7 @@ function c70771599.matfilter(c) ...@@ -40,7 +40,7 @@ function c70771599.matfilter(c)
return c:IsAttribute(ATTRIBUTE_DARK) and c:IsType(TYPE_PENDULUM) return c:IsAttribute(ATTRIBUTE_DARK) and c:IsType(TYPE_PENDULUM)
end end
function c70771599.descon(e,tp,eg,ep,ev,re,r,rp) function c70771599.descon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SYNCHRO)==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c70771599.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c70771599.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
......
...@@ -27,7 +27,7 @@ function c71578874.initial_effect(c) ...@@ -27,7 +27,7 @@ function c71578874.initial_effect(c)
end end
function c71578874.filter(c) function c71578874.filter(c)
return c:IsFaceup() and c:GetAttack()~=c:GetDefense() and c:IsDefenseAbove(0) return c:IsFaceup() and c:GetAttack()~=c:GetDefense() and c:IsDefenseAbove(0)
and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c71578874.adtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c71578874.adtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c71578874.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c71578874.filter(chkc) end
......
...@@ -62,7 +62,7 @@ function c71863024.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,7 +62,7 @@ function c71863024.atkop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c71863024.filter(c) function c71863024.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c71863024.hspcon(e,c) function c71863024.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -14,7 +14,7 @@ function c72287557.initial_effect(c) ...@@ -14,7 +14,7 @@ function c72287557.initial_effect(c)
end end
function c72287557.condition(e,tp,eg,ep,ev,re,r,rp) function c72287557.condition(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return eg:GetCount()==1 and tc:IsControler(1-tp) and bit.band(tc:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return eg:GetCount()==1 and tc:IsControler(1-tp) and tc:IsSummonType(SUMMON_TYPE_FUSION)
end end
function c72287557.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c72287557.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,nil,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,nil,1,nil) end
......
...@@ -47,7 +47,7 @@ function c72926163.valcheck(e,c) ...@@ -47,7 +47,7 @@ function c72926163.valcheck(e,c)
e:SetLabel(atk) e:SetLabel(atk)
end end
function c72926163.atkcon(e,tp,eg,ep,ev,re,r,rp) function c72926163.atkcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c72926163.atkop(e,tp,eg,ep,ev,re,r,rp) function c72926163.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -38,7 +38,7 @@ function c73240432.initial_effect(c) ...@@ -38,7 +38,7 @@ function c73240432.initial_effect(c)
end end
function c73240432.cfilter(c,tp) function c73240432.cfilter(c,tp)
return c:IsControler(tp) and c:IsSetCard(0xad) and c:IsType(TYPE_FUSION) return c:IsControler(tp) and c:IsSetCard(0xad) and c:IsType(TYPE_FUSION)
and bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION and c:IsSummonType(SUMMON_TYPE_FUSION)
end end
function c73240432.drcon(e,tp,eg,ep,ev,re,r,rp) function c73240432.drcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c73240432.cfilter,1,nil,tp) return eg:IsExists(c73240432.cfilter,1,nil,tp)
......
...@@ -33,7 +33,7 @@ function c73511233.initial_effect(c) ...@@ -33,7 +33,7 @@ function c73511233.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c73511233.thcfilter(c,tp) function c73511233.thcfilter(c,tp)
return c:IsControler(tp) and bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return c:IsControler(tp) and c:IsSummonType(SUMMON_TYPE_FUSION)
end end
function c73511233.thcon(e,tp,eg,ep,ev,re,r,rp) function c73511233.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg and eg:IsExists(c73511233.thcfilter,1,nil,tp) return eg and eg:IsExists(c73511233.thcfilter,1,nil,tp)
...@@ -56,7 +56,7 @@ function c73511233.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function c73511233.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c73511233.effcon(e,tp,eg,ep,ev,re,r,rp) function c73511233.effcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c73511233.regop(e,tp,eg,ep,ev,re,r,rp) function c73511233.regop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(73511233,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(73511233,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
......
...@@ -13,7 +13,7 @@ function c73534250.initial_effect(c) ...@@ -13,7 +13,7 @@ function c73534250.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c73534250.ctfilter(c) function c73534250.ctfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c73534250.spcon(e,tp,eg,ep,ev,re,r,rp) function c73534250.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c73534250.ctfilter,tp,0,LOCATION_MZONE,1,nil) return Duel.IsExistingMatchingCard(c73534250.ctfilter,tp,0,LOCATION_MZONE,1,nil)
......
...@@ -22,7 +22,7 @@ function c73887236.initial_effect(c) ...@@ -22,7 +22,7 @@ function c73887236.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c73887236.atkfilter(e,c) function c73887236.atkfilter(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c73887236.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c73887236.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
...@@ -30,7 +30,7 @@ function c73887236.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,7 +30,7 @@ function c73887236.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c73887236.filter(c) function c73887236.filter(c)
return c:IsFaceup() and c:GetAttack()>0 return c:IsFaceup() and c:GetAttack()>0
and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c73887236.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c73887236.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c73887236.filter(chkc) end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c73887236.filter(chkc) end
......
...@@ -28,7 +28,7 @@ function c74003290.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,7 @@ function c74003290.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 c74003290.filter(c) function c74003290.filter(c)
return c:IsFaceup() and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c74003290.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c74003290.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c74003290.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c74003290.filter(chkc) end
......
...@@ -126,7 +126,7 @@ function c74009824.indop(e,tp,eg,ep,ev,re,r,rp) ...@@ -126,7 +126,7 @@ function c74009824.indop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c74009824.indval(e,c) function c74009824.indval(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c74009824.thfilter(c) function c74009824.thfilter(c)
return c:IsSetCard(0x9d) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0x9d) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
......
...@@ -113,7 +113,7 @@ function c74822425.discon(e,tp,eg,ep,ev,re,r,rp) ...@@ -113,7 +113,7 @@ function c74822425.discon(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) then return false end if e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) then return false end
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION) local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return loc==LOCATION_MZONE and re:IsActiveType(TYPE_MONSTER) return loc==LOCATION_MZONE and re:IsActiveType(TYPE_MONSTER)
and bit.band(re:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and re:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
and Duel.IsChainNegatable(ev) and Duel.IsChainNegatable(ev)
end end
function c74822425.filter(c) function c74822425.filter(c)
......
...@@ -39,7 +39,7 @@ function c76224717.initial_effect(c) ...@@ -39,7 +39,7 @@ function c76224717.initial_effect(c)
end end
function c76224717.checkop(e,tp,eg,ep,ev,re,r,rp) function c76224717.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
if bit.band(tc:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE then if tc:IsSummonType(SUMMON_TYPE_ADVANCE) then
c76224717[ep]=c76224717[ep]+tc:GetMaterialCount() c76224717[ep]=c76224717[ep]+tc:GetMaterialCount()
end end
end end
......
...@@ -30,7 +30,7 @@ function c76359406.poscon(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,7 +30,7 @@ function c76359406.poscon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
end end
function c76359406.posfilter(c) function c76359406.posfilter(c)
return c:IsFaceup() and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c76359406.postg(e,tp,eg,ep,ev,re,r,rp,chk) function c76359406.postg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c76359406.posfilter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c76359406.posfilter,tp,0,LOCATION_MZONE,1,nil) end
......
...@@ -57,7 +57,7 @@ function c76815942.valcheck(e,c) ...@@ -57,7 +57,7 @@ function c76815942.valcheck(e,c)
e:GetLabelObject():SetLabel(val) e:GetLabelObject():SetLabel(val)
end end
function c76815942.lvcon(e,tp,eg,ep,ev,re,r,rp) function c76815942.lvcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION and e:GetLabel()>0 return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) and e:GetLabel()>0
end end
function c76815942.lvop(e,tp,eg,ep,ev,re,r,rp) function c76815942.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -31,5 +31,5 @@ function c76990617.spcon(e,c) ...@@ -31,5 +31,5 @@ function c76990617.spcon(e,c)
and Duel.IsExistingMatchingCard(c76990617.filter,c:GetControler(),LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(c76990617.filter,c:GetControler(),LOCATION_MZONE,0,1,nil)
end end
function c76990617.tgcon(e) function c76990617.tgcon(e)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end end
...@@ -28,7 +28,7 @@ function c78316184.initial_effect(c) ...@@ -28,7 +28,7 @@ function c78316184.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c78316184.descon(e,tp,eg,ep,ev,re,r,rp) function c78316184.descon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c78316184.desfilter(c) function c78316184.desfilter(c)
return c:GetSummonLocation()==LOCATION_EXTRA return c:GetSummonLocation()==LOCATION_EXTRA
......
...@@ -47,5 +47,5 @@ function c78835747.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,5 +47,5 @@ function c78835747.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c78835747.atkfilter(e,c) function c78835747.atkfilter(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
...@@ -21,8 +21,8 @@ function c79514956.initial_effect(c) ...@@ -21,8 +21,8 @@ function c79514956.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c79514956.indtg(e,c) function c79514956.indtg(e,c)
return c:IsSetCard(0x9b) and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSetCard(0x9b) and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c79514956.tgcon(e) function c79514956.tgcon(e)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end end
...@@ -22,7 +22,7 @@ function c80666118.initial_effect(c) ...@@ -22,7 +22,7 @@ function c80666118.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c80666118.filter(c,atk) function c80666118.filter(c,atk)
return c:IsFaceup() and c:IsAttackBelow(atk) and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsFaceup() and c:IsAttackBelow(atk) and c:IsSummonType(SUMMON_TYPE_SPECIAL)
and c:IsType(TYPE_EFFECT) and c:IsType(TYPE_EFFECT)
end end
function c80666118.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c80666118.destg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -37,7 +37,7 @@ function c80889750.mfilter2(c) ...@@ -37,7 +37,7 @@ function c80889750.mfilter2(c)
return c:IsFusionSetCard(0xa9) or c:IsFusionSetCard(0xc3) return c:IsFusionSetCard(0xa9) or c:IsFusionSetCard(0xc3)
end end
function c80889750.spcon(e,tp,eg,ep,ev,re,r,rp) function c80889750.spcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c80889750.spfilter(c,e,tp) function c80889750.spfilter(c,e,tp)
return c:IsSetCard(0xad) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xad) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
...@@ -58,7 +58,7 @@ function c80889750.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function c80889750.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function c80889750.indcon(e,tp,eg,ep,ev,re,r,rp) function c80889750.indcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return bit.band(c:GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION and c:GetMaterialCount()>=3 return c:IsSummonType(SUMMON_TYPE_FUSION) and c:GetMaterialCount()>=3
end end
function c80889750.indop(e,tp,eg,ep,ev,re,r,rp) function c80889750.indop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -24,7 +24,7 @@ function c81003500.initial_effect(c) ...@@ -24,7 +24,7 @@ function c81003500.initial_effect(c)
end end
c81003500.material_setcode=0x8 c81003500.material_setcode=0x8
function c81003500.condition(e,tp,eg,ep,ev,re,r,rp) function c81003500.condition(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c81003500.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c81003500.target(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
......
...@@ -38,7 +38,7 @@ function c81269231.valcheck(e,c) ...@@ -38,7 +38,7 @@ function c81269231.valcheck(e,c)
e:SetLabel(flag) e:SetLabel(flag)
end end
function c81269231.regcon(e,tp,eg,ep,ev,re,r,rp) function c81269231.regcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c81269231.regop(e,tp,eg,ep,ev,re,r,rp) function c81269231.regop(e,tp,eg,ep,ev,re,r,rp)
local flag=e:GetLabelObject():GetLabel() local flag=e:GetLabelObject():GetLabel()
......
...@@ -54,7 +54,7 @@ end ...@@ -54,7 +54,7 @@ end
function c81927732.adcon(e,tp,eg,ep,ev,re,r,rp) function c81927732.adcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
return bc and bc:IsFaceup() and bit.band(bc:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return bc and bc:IsFaceup() and bc:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c81927732.adop(e,tp,eg,ep,ev,re,r,rp) function c81927732.adop(e,tp,eg,ep,ev,re,r,rp)
local bc=e:GetHandler():GetBattleTarget() local bc=e:GetHandler():GetBattleTarget()
......
...@@ -25,7 +25,7 @@ function c82734805.valcheck(e,c) ...@@ -25,7 +25,7 @@ function c82734805.valcheck(e,c)
e:GetLabelObject():SetLabel(ct) e:GetLabelObject():SetLabel(ct)
end end
function c82734805.con(e,tp,eg,ep,ev,re,r,rp) function c82734805.con(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c82734805.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c82734805.tg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel() local ct=e:GetLabel()
......
...@@ -24,7 +24,7 @@ function c84058253.initial_effect(c) ...@@ -24,7 +24,7 @@ function c84058253.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c84058253.descon(e,tp,eg,ep,ev,re,r,rp) function c84058253.descon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c84058253.desfilter(c) function c84058253.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
......
...@@ -39,7 +39,7 @@ function c84171830.splimit(e,c) ...@@ -39,7 +39,7 @@ function c84171830.splimit(e,c)
return c:IsLocation(LOCATION_EXTRA) return c:IsLocation(LOCATION_EXTRA)
end end
function c84171830.cfilter(c) function c84171830.cfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c84171830.discon(e) function c84171830.discon(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
...@@ -53,7 +53,7 @@ function c84171830.atkcon(e) ...@@ -53,7 +53,7 @@ function c84171830.atkcon(e)
return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and d and d:IsControler(1-tp) return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and d and d:IsControler(1-tp)
end end
function c84171830.atktg(e,c) function c84171830.atktg(e,c)
return c==Duel.GetAttacker() and bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c==Duel.GetAttacker() and c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c84171830.filter(c) function c84171830.filter(c)
return c:GetAttack()==2800 and c:GetDefense()==1000 return c:GetAttack()==2800 and c:GetDefense()==1000
......
...@@ -34,7 +34,7 @@ function c8491961.initial_effect(c) ...@@ -34,7 +34,7 @@ function c8491961.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c8491961.atkcon(e,tp,eg,ep,ev,re,r,rp) function c8491961.atkcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
and e:GetHandler():GetOverlayCount()>0 and e:GetHandler():GetOverlayCount()>0
end end
function c8491961.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c8491961.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...@@ -63,7 +63,7 @@ end ...@@ -63,7 +63,7 @@ end
function c8491961.damcon(e,tp,eg,ep,ev,re,r,rp) function c8491961.damcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ep==tp and c:IsRelateToBattle() and eg:GetFirst()==c:GetBattleTarget() return ep==tp and c:IsRelateToBattle() and eg:GetFirst()==c:GetBattleTarget()
and bit.band(c:GetSummonType(),SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ and c:IsSummonType(SUMMON_TYPE_XYZ)
end end
function c8491961.damop(e,tp,eg,ep,ev,re,r,rp) function c8491961.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeBattleDamage(1-ep,ev,false) Duel.ChangeBattleDamage(1-ep,ev,false)
......
...@@ -31,7 +31,7 @@ end ...@@ -31,7 +31,7 @@ end
function c84988419.condition(e,tp,eg,ep,ev,re,r,rp) function c84988419.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
return bc and bit.band(bc:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:GetBaseAttack()~=bc:GetBaseAttack() return bc and bc:IsSummonType(SUMMON_TYPE_SPECIAL) and c:GetBaseAttack()~=bc:GetBaseAttack()
end end
function c84988419.target(e,tp,eg,ep,ev,re,r,rp,chk) function c84988419.target(e,tp,eg,ep,ev,re,r,rp,chk)
local bc=e:GetHandler():GetBattleTarget() local bc=e:GetHandler():GetBattleTarget()
......
...@@ -26,5 +26,5 @@ function c85528209.adval(e,c) ...@@ -26,5 +26,5 @@ function c85528209.adval(e,c)
return Duel.GetMatchingGroupCount(c85528209.ctfilter,c:GetControler(),0,LOCATION_MZONE,nil)*900 return Duel.GetMatchingGroupCount(c85528209.ctfilter,c:GetControler(),0,LOCATION_MZONE,nil)*900
end end
function c85528209.ctfilter(c) function c85528209.ctfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
...@@ -31,7 +31,7 @@ function c86321248.valcheck(e,c) ...@@ -31,7 +31,7 @@ function c86321248.valcheck(e,c)
e:SetLabel(flag) e:SetLabel(flag)
end end
function c86321248.regcon(e,tp,eg,ep,ev,re,r,rp) function c86321248.regcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c86321248.regop(e,tp,eg,ep,ev,re,r,rp) function c86321248.regop(e,tp,eg,ep,ev,re,r,rp)
local flag=e:GetLabelObject():GetLabel() local flag=e:GetLabelObject():GetLabel()
......
...@@ -30,7 +30,7 @@ function c86532744.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,7 +30,7 @@ function c86532744.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c86532744.filter(c) function c86532744.filter(c)
return c:IsAbleToRemove() return c:IsAbleToRemove()
and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c86532744.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c86532744.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c86532744.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c86532744.filter(chkc) end
......
...@@ -35,7 +35,7 @@ end ...@@ -35,7 +35,7 @@ end
function c86943389.atkcon(e,tp,eg,ep,ev,re,r,rp) function c86943389.atkcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
return bc and bit.band(bc:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return bc and bc:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c86943389.atkop(e,tp,eg,ep,ev,re,r,rp) function c86943389.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -32,7 +32,7 @@ function c87288189.initial_effect(c) ...@@ -32,7 +32,7 @@ function c87288189.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c87288189.otfilter(c) function c87288189.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c87288189.otcon(e,c,minc) function c87288189.otcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
......
...@@ -116,7 +116,7 @@ function c87588741.lvop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -116,7 +116,7 @@ function c87588741.lvop2(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c87588741.immcon(e) function c87588741.immcon(e)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_NORMAL)==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():GetSummonType()==SUMMON_TYPE_ADVANCE and e:GetLabel()==1
......
...@@ -32,7 +32,7 @@ function c87602890.initial_effect(c) ...@@ -32,7 +32,7 @@ function c87602890.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c87602890.otfilter(c) function c87602890.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c87602890.otcon(e,c,minc) function c87602890.otcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
......
...@@ -26,7 +26,7 @@ function c88120966.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,7 +26,7 @@ function c88120966.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c88120966.filter(c) function c88120966.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c88120966.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c88120966.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c88120966.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c88120966.filter(chkc) end
......
...@@ -14,13 +14,13 @@ function c88197162.initial_effect(c) ...@@ -14,13 +14,13 @@ function c88197162.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c88197162.cfilter(c) function c88197162.cfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c88197162.condition(e,tp,eg,ep,ev,re,r,rp) function c88197162.condition(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(c88197162.cfilter,tp,LOCATION_MZONE,0,1,nil) return not Duel.IsExistingMatchingCard(c88197162.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c88197162.filter(c) function c88197162.filter(c)
return c:IsFaceup() and c:GetLevel()==4 and bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)==SUMMON_TYPE_NORMAL return c:IsFaceup() and c:GetLevel()==4 and c:IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c88197162.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c88197162.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0 if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0
......
...@@ -20,7 +20,7 @@ function c88301833.initial_effect(c) ...@@ -20,7 +20,7 @@ function c88301833.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c88301833.cfilter(c) function c88301833.cfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return c:IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c88301833.thcon(e,tp,eg,ep,ev,re,r,rp) function c88301833.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c88301833.cfilter,1,nil) return eg:IsExists(c88301833.cfilter,1,nil)
......
...@@ -30,10 +30,10 @@ function c88610708.initial_effect(c) ...@@ -30,10 +30,10 @@ function c88610708.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c88610708.eqlimit(e,c) function c88610708.eqlimit(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)==SUMMON_TYPE_NORMAL return c:IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c88610708.filter(c) function c88610708.filter(c)
return c:IsFaceup() and bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)==SUMMON_TYPE_NORMAL return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c88610708.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c88610708.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c88610708.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c88610708.filter(chkc) end
......
...@@ -21,12 +21,12 @@ function c88724332.initial_effect(c) ...@@ -21,12 +21,12 @@ function c88724332.initial_effect(c)
end end
function c88724332.target(e,c) function c88724332.target(e,c)
return c:IsFaceup() and not c:IsRace(RACE_WYRM) return c:IsFaceup() and not c:IsRace(RACE_WYRM)
and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsSummonType(SUMMON_TYPE_SPECIAL)
and bit.band(c:GetSummonLocation(),LOCATION_DECK+LOCATION_EXTRA)~=0 and bit.band(c:GetSummonLocation(),LOCATION_DECK+LOCATION_EXTRA)~=0
end end
function c88724332.deftg(e,c) function c88724332.deftg(e,c)
return c:IsFaceup() and not c:IsRace(RACE_WYRM) return c:IsFaceup() and not c:IsRace(RACE_WYRM)
and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and c:IsSummonType(SUMMON_TYPE_SPECIAL)
and bit.band(c:GetSummonLocation(),LOCATION_DECK+LOCATION_EXTRA)~=0 and bit.band(c:GetSummonLocation(),LOCATION_DECK+LOCATION_EXTRA)~=0
end end
function c88724332.defval(e,c) function c88724332.defval(e,c)
......
...@@ -11,7 +11,7 @@ function c89041555.initial_effect(c) ...@@ -11,7 +11,7 @@ function c89041555.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c89041555.condition(e,tp,eg,ep,ev,re,r,rp) function c89041555.condition(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer() and bit.band(eg:GetFirst():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return tp~=Duel.GetTurnPlayer() and eg:GetFirst():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c89041555.filter(c) function c89041555.filter(c)
return c:IsAttackPos() return c:IsAttackPos()
......
...@@ -67,7 +67,7 @@ function c89399912.hspop(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,7 +67,7 @@ function c89399912.hspop(e,tp,eg,ep,ev,re,r,rp)
end end
function c89399912.retcon(e,tp,eg,ep,ev,re,r,rp) function c89399912.retcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
and bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c89399912.rettg(e,tp,eg,ep,ev,re,r,rp,chk) function c89399912.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -68,7 +68,7 @@ function c90411554.hspop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +68,7 @@ function c90411554.hspop(e,tp,eg,ep,ev,re,r,rp)
end end
function c90411554.retcon(e,tp,eg,ep,ev,re,r,rp) function c90411554.retcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
and bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL and e:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c90411554.rettg(e,tp,eg,ep,ev,re,r,rp,chk) function c90411554.rettg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -114,7 +114,7 @@ function c90885155.lvop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -114,7 +114,7 @@ function c90885155.lvop2(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c90885155.immcon(e) function c90885155.immcon(e)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_NORMAL)==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():GetSummonType()==SUMMON_TYPE_ADVANCE and e:GetLabel()==1
......
...@@ -13,7 +13,7 @@ function c91250514.initial_effect(c) ...@@ -13,7 +13,7 @@ function c91250514.initial_effect(c)
end end
function c91250514.condition(e,tp,eg,ep,ev,re,r,rp) function c91250514.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
and bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c91250514.target(e,tp,eg,ep,ev,re,r,rp,chk) function c91250514.target(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 c9161357.initial_effect(c) ...@@ -27,7 +27,7 @@ function c9161357.initial_effect(c)
end end
c9161357.xyz_number=6 c9161357.xyz_number=6
function c9161357.eqcon(e,tp,eg,ep,ev,re,r,rp) function c9161357.eqcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_XYZ)==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c9161357.filter(c) function c9161357.filter(c)
return c:IsSetCard(0x48) and c:IsType(TYPE_MONSTER) and not c:IsForbidden() return c:IsSetCard(0x48) and c:IsType(TYPE_MONSTER) and not c:IsForbidden()
......
...@@ -109,7 +109,7 @@ function c91907707.lvop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -109,7 +109,7 @@ function c91907707.lvop2(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c91907707.immcon(e) function c91907707.immcon(e)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_NORMAL)==SUMMON_TYPE_NORMAL return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c91907707.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c91907707.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsAbleToHand() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsAbleToHand() end
......
...@@ -45,7 +45,7 @@ function c93506862.chainlm(e,rp,tp) ...@@ -45,7 +45,7 @@ function c93506862.chainlm(e,rp,tp)
return tp==rp return tp==rp
end end
function c93506862.sucfilter(c) function c93506862.sucfilter(c)
return c:IsSetCard(0x3a) and c:IsType(TYPE_RITUAL) and bit.band(c:GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return c:IsSetCard(0x3a) and c:IsType(TYPE_RITUAL) and c:IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c93506862.sucop(e,tp,eg,ep,ev,re,r,rp) function c93506862.sucop(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(c93506862.sucfilter,1,nil) then if eg:IsExists(c93506862.sucfilter,1,nil) then
......
...@@ -29,7 +29,7 @@ function c93657021.matfilter(c) ...@@ -29,7 +29,7 @@ function c93657021.matfilter(c)
return c:IsFusionType(TYPE_FUSION) and c:IsFusionSetCard(0xc008) return c:IsFusionType(TYPE_FUSION) and c:IsFusionSetCard(0xc008)
end end
function c93657021.spcon(e,tp,eg,ep,ev,re,r,rp) function c93657021.spcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end end
function c93657021.spfilter1(c,e) function c93657021.spfilter1(c,e)
return not c:IsImmuneToEffect(e) return not c:IsImmuneToEffect(e)
......
...@@ -53,7 +53,7 @@ end ...@@ -53,7 +53,7 @@ end
function c94982447.spcon(e,tp,eg,ep,ev,re,r,rp) function c94982447.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousPosition(POS_FACEUP) and return c:IsPreviousPosition(POS_FACEUP) and
bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c94982447.spfilter(c,e,tp) function c94982447.spfilter(c,e,tp)
return c:IsSetCard(0xf9) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsSetCard(0xf9) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
......
...@@ -39,7 +39,7 @@ function c95004025.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -39,7 +39,7 @@ function c95004025.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 c95004025.thcon(e,tp,eg,ep,ev,re,r,rp) function c95004025.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and rp~=tp return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE) and rp~=tp
end end
function c95004025.thfilter(c) function c95004025.thfilter(c)
return c:IsSetCard(0xf9) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0xf9) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
......
...@@ -21,7 +21,7 @@ function c95204084.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,7 +21,7 @@ function c95204084.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoDeck(g,nil,0,REASON_COST) Duel.SendtoDeck(g,nil,0,REASON_COST)
end end
function c95204084.filter(c) function c95204084.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==SUMMON_TYPE_SPECIAL return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c95204084.target(e,tp,eg,ep,ev,re,r,rp,chk) function c95204084.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c95204084.filter,tp,0,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c95204084.filter,tp,0,LOCATION_MZONE,1,nil) end
......
...@@ -39,7 +39,7 @@ function c96570609.initial_effect(c) ...@@ -39,7 +39,7 @@ function c96570609.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c96570609.otfilter(c) function c96570609.otfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c96570609.otcon(e,c,minc) function c96570609.otcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
......
...@@ -13,7 +13,7 @@ function c96598015.initial_effect(c) ...@@ -13,7 +13,7 @@ function c96598015.initial_effect(c)
Duel.AddCustomActivityCounter(96598015,ACTIVITY_SPSUMMON,c96598015.counterfilter) Duel.AddCustomActivityCounter(96598015,ACTIVITY_SPSUMMON,c96598015.counterfilter)
end end
function c96598015.counterfilter(c) function c96598015.counterfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return c:IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c96598015.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c96598015.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(96598015,tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.GetCustomActivityCount(96598015,tp,ACTIVITY_SPSUMMON)==0 end
......
...@@ -28,7 +28,7 @@ function c98287529.initial_effect(c) ...@@ -28,7 +28,7 @@ function c98287529.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c98287529.skipcon(e,tp,eg,ep,ev,re,r,rp) function c98287529.skipcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c98287529.skipop(e,tp,eg,ep,ev,re,r,rp) function c98287529.skipop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
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