Commit 9c402738 authored by mercury233's avatar mercury233

update

parent f67a7cb5
...@@ -9,10 +9,8 @@ function c22888900.initial_effect(c) ...@@ -9,10 +9,8 @@ function c22888900.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c22888900.cfilter(c) function c22888900.cfilter(c)
local sumtype=c:GetSummonType() return c:IsFaceup()
return c:IsFaceup() and (bit.band(sumtype,SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and (c:IsSummonType(SUMMON_TYPE_ADVANCE) or c:IsSummonType(SUMMON_TYPE_RITUAL) or c:IsSummonType(SUMMON_TYPE_FUSION))
or bit.band(sumtype,SUMMON_TYPE_RITUAL)==SUMMON_TYPE_RITUAL
or bit.band(sumtype,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION)
end end
function c22888900.condition(e,tp,eg,ep,ev,re,r,rp) function c22888900.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c22888900.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c22888900.cfilter,tp,LOCATION_MZONE,0,1,nil)
......
...@@ -17,7 +17,7 @@ end ...@@ -17,7 +17,7 @@ end
function c26842483.condition(e,tp,eg,ep,ev,re,r,rp,chk) function c26842483.condition(e,tp,eg,ep,ev,re,r,rp,chk)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION) local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return ep~=tp and loc==LOCATION_MZONE and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev) return ep~=tp and loc==LOCATION_MZONE and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev)
and bit.band(re:GetHandler():GetSummonType(),SUMMON_TYPE_SPECIAL)~=0 and re:GetHandler():IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c26842483.target(e,tp,eg,ep,ev,re,r,rp,chk) function c26842483.target(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 c32207100.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -19,7 +19,7 @@ function c32207100.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c32207100.filter(c) function c32207100.filter(c)
return c:IsFaceup() and c:IsLevelAbove(7) and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)~=0 and c:IsAbleToHand() return c:IsFaceup() and c:IsLevelAbove(7) and c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsAbleToHand()
end end
function c32207100.target(e,tp,eg,ep,ev,re,r,rp,chk) function c32207100.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c32207100.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c32207100.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
...@@ -18,7 +18,7 @@ function c3536537.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,7 +18,7 @@ function c3536537.descon(e,tp,eg,ep,ev,re,r,rp)
and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousPosition(POS_FACEUP)
end end
function c3536537.filter(c) function c3536537.filter(c)
return c:IsFaceup() and c:IsLevelAbove(5) and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)~=0 return c:IsFaceup() and c:IsLevelAbove(5) and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c3536537.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c3536537.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c3536537.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c3536537.filter(chkc) end
......
...@@ -47,7 +47,7 @@ function c35494087.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c35494087.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
function c35494087.indval(e,c) function c35494087.indval(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)~=0 return c:IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c35494087.sdfilter(c) function c35494087.sdfilter(c)
return c:IsFaceup() and not c:IsSetCard(0x2016) return c:IsFaceup() and not c:IsSetCard(0x2016)
......
...@@ -29,7 +29,7 @@ function c41855169.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,7 +29,7 @@ function c41855169.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(sg,REASON_COST+REASON_DISCARD) Duel.SendtoGrave(sg,REASON_COST+REASON_DISCARD)
end end
function c41855169.filter(c) function c41855169.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)~=0 return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c41855169.target(e,tp,eg,ep,ev,re,r,rp,chk) function c41855169.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c41855169.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c41855169.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
...@@ -19,7 +19,7 @@ function c42009836.initial_effect(c) ...@@ -19,7 +19,7 @@ function c42009836.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c42009836.filter(c) function c42009836.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)~=0 return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c42009836.target(e,tp,eg,ep,ev,re,r,rp,chk) function c42009836.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 c42679662.initial_effect(c) ...@@ -11,7 +11,7 @@ function c42679662.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c42679662.filter(c) function c42679662.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)~=0 and c:IsAbleToDeck() return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:IsAbleToDeck()
end end
function c42679662.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c42679662.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c42679662.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c42679662.filter(chkc) end
......
...@@ -28,7 +28,7 @@ function c45591967.initial_effect(c) ...@@ -28,7 +28,7 @@ function c45591967.initial_effect(c)
Duel.AddCustomActivityCounter(45591967,ACTIVITY_SPSUMMON,c45591967.counterfilter) Duel.AddCustomActivityCounter(45591967,ACTIVITY_SPSUMMON,c45591967.counterfilter)
end end
function c45591967.counterfilter(c) function c45591967.counterfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_PENDULUM)~=SUMMON_TYPE_PENDULUM return not c:IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c45591967.dmcost(e,tp,eg,ep,ev,re,r,rp,chk) function c45591967.dmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(45591967,tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.GetCustomActivityCount(45591967,tp,ACTIVITY_SPSUMMON)==0 end
......
...@@ -16,7 +16,7 @@ function c47395382.initial_effect(c) ...@@ -16,7 +16,7 @@ function c47395382.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c47395382.con(e,tp,eg,ep,ev,re,r,rp,chk) function c47395382.con(e,tp,eg,ep,ev,re,r,rp,chk)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c47395382.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c47395382.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
......
...@@ -50,7 +50,7 @@ function c48179391.actcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -50,7 +50,7 @@ function c48179391.actcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterFlagEffect(tp,48179391,0,0,0) Duel.RegisterFlagEffect(tp,48179391,0,0,0)
end end
function c48179391.desfilter(c) function c48179391.desfilter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)~=0 return c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c48179391.acttg(e,tp,eg,ep,ev,re,r,rp,chk) function c48179391.acttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -32,7 +32,7 @@ function c48716527.actcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c48716527.actcon(e,tp,eg,ep,ev,re,r,rp)
and Duel.IsExistingMatchingCard(c48716527.cfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(c48716527.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c48716527.distg(e,c) function c48716527.distg(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)~=SUMMON_TYPE_ADVANCE return not c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c48716527.tgcon(e) function c48716527.tgcon(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
......
...@@ -24,7 +24,7 @@ function c50155385.valcon(e,re,r,rp) ...@@ -24,7 +24,7 @@ function c50155385.valcon(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 return bit.band(r,REASON_BATTLE)~=0
end end
function c50155385.thcon(e,tp,eg,ep,ev,re,r,rp) function c50155385.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_PENDULUM return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c50155385.filter(c) function c50155385.filter(c)
return c:IsType(TYPE_RITUAL) and c:IsAbleToHand() return c:IsType(TYPE_RITUAL) and c:IsAbleToHand()
......
...@@ -13,7 +13,7 @@ function c51945556.initial_effect(c) ...@@ -13,7 +13,7 @@ function c51945556.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c51945556.condition(e,tp,eg,ep,ev,re,r,rp) function c51945556.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c51945556.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c51945556.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) end if chkc then return chkc:IsLocation(LOCATION_MZONE) end
......
...@@ -15,7 +15,7 @@ function c52687916.initial_effect(c) ...@@ -15,7 +15,7 @@ function c52687916.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c52687916.remcon(e,tp,eg,ep,ev,re,r,rp) function c52687916.remcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c52687916.remtg(e,tp,eg,ep,ev,re,r,rp,chk) function c52687916.remtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,0x1e,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,0x1e,1,nil) end
......
...@@ -32,7 +32,7 @@ function c52709508.valcheck(e,c) ...@@ -32,7 +32,7 @@ function c52709508.valcheck(e,c)
e:SetLabel(att) e:SetLabel(att)
end end
function c52709508.regcon(e,tp,eg,ep,ev,re,r,rp) function c52709508.regcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
and e:GetLabelObject():GetLabel()~=0 and e:GetLabelObject():GetLabel()~=0
end end
function c52709508.regop(e,tp,eg,ep,ev,re,r,rp) function c52709508.regop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -64,7 +64,7 @@ function c53389254.tnop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function c53389254.tnop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c53389254.spcon1(e,tp,eg,ep,ev,re,r,rp) function c53389254.spcon1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c53389254.spfilter(c,e,tp) function c53389254.spfilter(c,e,tp)
return c:IsSetCard(0x1033) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1033) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -25,7 +25,7 @@ function c56768355.initial_effect(c) ...@@ -25,7 +25,7 @@ function c56768355.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c56768355.eqcon(e,tp,eg,ep,ev,re,r,rp) function c56768355.eqcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c56768355.filter(c,ec) function c56768355.filter(c,ec)
return c:IsType(TYPE_EQUIP) and c:CheckEquipTarget(ec) return c:IsType(TYPE_EQUIP) and c:CheckEquipTarget(ec)
......
...@@ -61,7 +61,7 @@ function c57288708.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,7 +61,7 @@ function c57288708.tgop(e,tp,eg,ep,ev,re,r,rp)
end end
function c57288708.spcon(e,tp,eg,ep,ev,re,r,rp) function c57288708.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousPosition(POS_FACEUP) and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)==0 return c:IsPreviousPosition(POS_FACEUP) and not c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c57288708.spfilter(c,e,tp) function c57288708.spfilter(c,e,tp)
return c:IsSetCard(0xfd) and not c:IsCode(57288708) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xfd) and not c:IsCode(57288708) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -26,7 +26,7 @@ function c5795980.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,7 +26,7 @@ function c5795980.cost(e,tp,eg,ep,ev,re,r,rp,chk)
return true return true
end end
function c5795980.cfilter(c,e,dg) function c5795980.cfilter(c,e,dg)
if c:IsFacedown() or not c:IsLevelAbove(5) or bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)==0 then return false end if c:IsFacedown() or not c:IsLevelAbove(5) or not c:IsSummonType(SUMMON_TYPE_NORMAL) then return false end
local a=0 local a=0
if dg:IsContains(c) then a=1 end if dg:IsContains(c) then a=1 end
if c:GetEquipCount()==0 then return dg:GetCount()-a>=1 end if c:GetEquipCount()==0 then return dg:GetCount()-a>=1 end
......
...@@ -18,7 +18,7 @@ function c60800381.tfilter(c) ...@@ -18,7 +18,7 @@ function c60800381.tfilter(c)
return c:IsCode(63977008) or c:IsHasEffect(20932152) return c:IsCode(63977008) or c:IsHasEffect(20932152)
end end
function c60800381.con(e,tp,eg,ep,ev,re,r,rp) function c60800381.con(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c60800381.filter(c) function c60800381.filter(c)
return c:IsFaceup() and c:IsLevelBelow(2) return c:IsFaceup() and c:IsLevelBelow(2)
......
...@@ -22,7 +22,7 @@ function c61757117.initial_effect(c) ...@@ -22,7 +22,7 @@ function c61757117.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c61757117.condition(e,tp,eg,ep,ev,re,r,rp) function c61757117.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_RITUAL return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL)
end end
function c61757117.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c61757117.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsFaceup() and chkc~=e:GetHandler() end if chkc then return chkc:IsOnField() and chkc:IsFaceup() and chkc~=e:GetHandler() end
......
...@@ -173,7 +173,7 @@ function c62242678.synop(e,tp,eg,ep,ev,re,r,rp,c,tuner,mg) ...@@ -173,7 +173,7 @@ function c62242678.synop(e,tp,eg,ep,ev,re,r,rp,c,tuner,mg)
Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO) Duel.SendtoGrave(g,REASON_MATERIAL+REASON_SYNCHRO)
end end
function c62242678.limcon(e,tp,eg,ep,ev,re,r,rp) function c62242678.limcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c62242678.limtg(e,tp,eg,ep,ev,re,r,rp,chk) function c62242678.limtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -20,7 +20,7 @@ function c62473983.initial_effect(c) ...@@ -20,7 +20,7 @@ function c62473983.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c62473983.spcon(e,tp,eg,ep,ev,re,r,rp) function c62473983.spcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),0xff000000)==SUMMON_TYPE_ADVANCE return c:IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c62473983.filter(c,e,tp) function c62473983.filter(c,e,tp)
return c:IsSetCard(0x2e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x2e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -38,7 +38,7 @@ function c63101919.initial_effect(c) ...@@ -38,7 +38,7 @@ function c63101919.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c63101919.addcc1(e,tp,eg,ep,ev,re,r,rp) function c63101919.addcc1(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c63101919.addct1(e,tp,eg,ep,ev,re,r,rp,chk) function c63101919.addct1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -48,7 +48,7 @@ function c63821877.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c63821877.efop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterFlagEffect(p,63821877,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(p,63821877,RESET_PHASE+PHASE_END,0,1)
end end
function c63821877.atkcon(e,tp,eg,ep,ev,re,r,rp) function c63821877.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c63821877.atkop(e,tp,eg,ep,ev,re,r,rp) function c63821877.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -33,7 +33,7 @@ function c66141736.counterfilter(c) ...@@ -33,7 +33,7 @@ function c66141736.counterfilter(c)
return c:GetSummonLocation()~=LOCATION_EXTRA or (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_DRAGON)) return c:GetSummonLocation()~=LOCATION_EXTRA or (c:IsType(TYPE_SYNCHRO) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsRace(RACE_DRAGON))
end end
function c66141736.spcon(e,tp,eg,ep,ev,re,r,rp) function c66141736.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c66141736.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c66141736.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(66141736,tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.GetCustomActivityCount(66141736,tp,ACTIVITY_SPSUMMON)==0 end
......
...@@ -54,7 +54,7 @@ end ...@@ -54,7 +54,7 @@ end
function c66698383.thcon(e,tp,eg,ep,ev,re,r,rp) function c66698383.thcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_EFFECT) return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_EFFECT)
and c:IsPreviousLocation(LOCATION_MZONE) and c:GetSummonType()==SUMMON_TYPE_SYNCHRO and c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c66698383.thfilter(c) function c66698383.thfilter(c)
return c:IsFaceup() and c:IsType(TYPE_TUNER) and c:IsAbleToHand() return c:IsFaceup() and c:IsType(TYPE_TUNER) and c:IsAbleToHand()
......
...@@ -28,7 +28,7 @@ function c66976526.initial_effect(c) ...@@ -28,7 +28,7 @@ function c66976526.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c66976526.spcon(e,tp,eg,ep,ev,re,r,rp) function c66976526.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c66976526.spfilter(c,e,tp) function c66976526.spfilter(c,e,tp)
return c:IsSetCard(0x11) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x11) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -115,7 +115,7 @@ function c67120578.efop(e,tp,eg,ep,ev,re,r,rp) ...@@ -115,7 +115,7 @@ function c67120578.efop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c67120578.drcon(e,tp,eg,ep,ev,re,r,rp) function c67120578.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ return e:GetHandler():IsSummonType(SUMMON_TYPE_XYZ)
end end
function c67120578.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c67120578.drtg(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 c67556500.initial_effect(c) ...@@ -16,7 +16,7 @@ function c67556500.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c67556500.lvcon(e,tp,eg,ep,ev,re,r,rp) function c67556500.lvcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c67556500.lvtg(e,tp,eg,ep,ev,re,r,rp,chk) function c67556500.lvtg(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 c68124775.initial_effect(c) ...@@ -16,7 +16,7 @@ function c68124775.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c68124775.condition(e,tp,eg,ep,ev,re,r,rp) function c68124775.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c68124775.filter(c) function c68124775.filter(c)
return c:IsFaceup() and c:IsType(TYPE_SYNCHRO) and c:IsAbleToRemove() return c:IsFaceup() and c:IsType(TYPE_SYNCHRO) and c:IsAbleToRemove()
......
...@@ -71,7 +71,7 @@ function c68371799.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,7 +71,7 @@ function c68371799.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c68371799.spcon2(e,tp,eg,ep,ev,re,r,rp) function c68371799.spcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c68371799.spfilter(c,e,tp) function c68371799.spfilter(c,e,tp)
return c:GetLevel()==6 and c:IsSetCard(0x45) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:GetLevel()==6 and c:IsSetCard(0x45) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
......
...@@ -11,7 +11,7 @@ function c68477598.initial_effect(c) ...@@ -11,7 +11,7 @@ function c68477598.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c68477598.cfilter(c) function c68477598.cfilter(c)
return c:GetSummonType()==SUMMON_TYPE_PENDULUM return c:IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c68477598.condition(e,tp,eg,ep,ev,re,r,rp) function c68477598.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0 and eg:IsExists(c68477598.cfilter,1,nil) return Duel.GetCurrentChain()==0 and eg:IsExists(c68477598.cfilter,1,nil)
......
...@@ -23,7 +23,7 @@ function c68543408.initial_effect(c) ...@@ -23,7 +23,7 @@ function c68543408.initial_effect(c)
end end
function c68543408.spcon(e,tp,eg,ep,ev,re,r,rp) function c68543408.spcon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return tc:IsControler(tp) and tc:IsCode(44508094) and tc:GetSummonType()==SUMMON_TYPE_SYNCHRO return tc:IsControler(tp) and tc:IsCode(44508094) and tc:IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c68543408.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c68543408.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
......
...@@ -45,7 +45,7 @@ function c69230391.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -45,7 +45,7 @@ function c69230391.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 c69230391.condition(e,tp,eg,ep,ev,re,r,rp) function c69230391.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c69230391.target(e,tp,eg,ep,ev,re,r,rp,chk) function c69230391.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -46,7 +46,7 @@ function c69327790.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -46,7 +46,7 @@ function c69327790.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 c69327790.tdcon(e,tp,eg,ep,ev,re,r,rp) function c69327790.tdcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c69327790.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c69327790.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
......
...@@ -35,7 +35,7 @@ end ...@@ -35,7 +35,7 @@ end
function c72497366.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c72497366.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=eg:GetFirst() local tc=eg:GetFirst()
if chk==0 then return eg:GetCount()==1 and tc:IsFaceup() and tc:IsLocation(LOCATION_MZONE) if chk==0 then return eg:GetCount()==1 and tc:IsFaceup() and tc:IsLocation(LOCATION_MZONE)
and tc:IsRace(RACE_FIEND) and tc:IsLevelAbove(5) and bit.band(tc:GetSummonType(),SUMMON_TYPE_NORMAL)~=0 end and tc:IsRace(RACE_FIEND) and tc:IsLevelAbove(5) and tc:IsSummonType(SUMMON_TYPE_NORMAL) end
if Duel.SelectYesNo(tp,aux.Stringid(72497366,1)) then if Duel.SelectYesNo(tp,aux.Stringid(72497366,1)) then
Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT) Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)
return true return true
......
...@@ -13,7 +13,7 @@ function c73125233.initial_effect(c) ...@@ -13,7 +13,7 @@ function c73125233.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c73125233.condition(e,tp,eg,ep,ev,re,r,rp) function c73125233.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c73125233.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c73125233.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() end if chkc then return chkc:IsOnField() end
......
...@@ -27,7 +27,7 @@ function c73580471.initial_effect(c) ...@@ -27,7 +27,7 @@ function c73580471.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c73580471.descon(e,tp,eg,ep,ev,re,r,rp) function c73580471.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c73580471.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c73580471.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
......
...@@ -12,7 +12,7 @@ function c77428945.initial_effect(c) ...@@ -12,7 +12,7 @@ function c77428945.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c77428945.filter(c) function c77428945.filter(c)
return c:IsFaceup() and c:IsCanTurnSet() and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)~=0 return c:IsFaceup() and c:IsCanTurnSet() and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
function c77428945.target(e,tp,eg,ep,ev,re,r,rp,chk) function c77428945.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -32,7 +32,7 @@ function c78637313.initial_effect(c) ...@@ -32,7 +32,7 @@ function c78637313.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c78637313.filter(c) function c78637313.filter(c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)~=0 and c:GetReasonEffect() return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:GetReasonEffect()
and c:GetReasonEffect():GetHandler():IsCode(83764718) and c:GetReasonEffect():GetHandler():IsCode(83764718)
end end
function c78637313.adjustop(e,tp,eg,ep,ev,re,r,rp) function c78637313.adjustop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -23,7 +23,7 @@ function c82293134.initial_effect(c) ...@@ -23,7 +23,7 @@ function c82293134.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c82293134.descon(e,tp,eg,ep,ev,re,r,rp) function c82293134.descon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetSummonType(),SUMMON_TYPE_NORMAL)~=0 return c:IsSummonType(SUMMON_TYPE_NORMAL)
and e:GetHandler():GetTurnID()==Duel.GetTurnCount() and e:GetHandler():GetTurnID()==Duel.GetTurnCount()
end end
function c82293134.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c82293134.destg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -24,5 +24,5 @@ function c83266092.initial_effect(c) ...@@ -24,5 +24,5 @@ function c83266092.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c83266092.target(e,c) function c83266092.target(e,c)
return c:GetLevel()>=6 and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)~=0 return c:GetLevel()>=6 and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
...@@ -46,7 +46,7 @@ function c87602890.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -46,7 +46,7 @@ function c87602890.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 c87602890.condition(e,tp,eg,ep,ev,re,r,rp) function c87602890.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():IsSummonType(SUMMON_TYPE_ADVANCE)
end end
function c87602890.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c87602890.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) end if chkc then return chkc:IsLocation(LOCATION_MZONE) end
......
...@@ -11,7 +11,7 @@ end ...@@ -11,7 +11,7 @@ end
function c90122655.chainop(e,tp,eg,ep,ev,re,r,rp) function c90122655.chainop(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler() local rc=re:GetHandler()
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION) local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
if re:IsActiveType(TYPE_MONSTER) and loc==LOCATION_MZONE and bit.band(rc:GetSummonType(),SUMMON_TYPE_NORMAL)~=0 then if re:IsActiveType(TYPE_MONSTER) and loc==LOCATION_MZONE and rc:IsSummonType(SUMMON_TYPE_NORMAL) then
Duel.SetChainLimit(c90122655.chainlm) Duel.SetChainLimit(c90122655.chainlm)
end end
end end
......
...@@ -16,5 +16,5 @@ function c91468551.initial_effect(c) ...@@ -16,5 +16,5 @@ function c91468551.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c91468551.atktg(e,c) function c91468551.atktg(e,c)
return bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)~=0 and c:GetSummonLocation()==LOCATION_GRAVE return c:IsSummonType(SUMMON_TYPE_SPECIAL) and c:GetSummonLocation()==LOCATION_GRAVE
end end
...@@ -204,7 +204,7 @@ function c93157004.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -204,7 +204,7 @@ function c93157004.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
end end
function c93157004.desfilter(c) function c93157004.desfilter(c)
return c:IsFaceup() and bit.band(c:GetSummonType(),SUMMON_TYPE_NORMAL)~=0 return c:IsFaceup() and c:IsSummonType(SUMMON_TYPE_NORMAL)
end end
function c93157004.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c93157004.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -14,5 +14,5 @@ function c99214782.condition(e) ...@@ -14,5 +14,5 @@ function c99214782.condition(e)
return e:GetHandler():IsAttackPos() return e:GetHandler():IsAttackPos()
end end
function c99214782.target(e,c) function c99214782.target(e,c)
return c:GetLevel()>=5 and bit.band(c:GetSummonType(),SUMMON_TYPE_SPECIAL)~=0 return c:GetLevel()>=5 and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end end
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