Commit b81455fb authored by salix5's avatar salix5

remove redundant condition

parent 276af19d
......@@ -10,7 +10,7 @@ function c1005587.initial_effect(c)
c:RegisterEffect(e1)
end
function c1005587.filter(c,tp)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsAttackAbove(2000) and c:GetSummonPlayer()==tp and c:IsDestructable() and not c:IsDisabled()
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsAttackAbove(2000) and c:GetSummonPlayer()==tp and not c:IsDisabled()
end
function c1005587.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
......@@ -21,7 +21,7 @@ function c1005587.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c1005587.filter2(c,e,tp)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsAttackAbove(2000)
and c:GetSummonPlayer()==tp and c:IsDestructable() and c:IsRelateToEffect(e)
and c:GetSummonPlayer()==tp and c:IsRelateToEffect(e)
end
function c1005587.activate(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(c1005587.filter2,nil,e,1-tp)
......
......@@ -31,7 +31,7 @@ function c10097168.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE and e:GetLabel()==1
end
function c10097168.filter(c)
return c:IsFacedown() and c:GetSequence()~=5 and c:IsDestructable()
return c:IsFacedown() and c:GetSequence()~=5
end
function c10097168.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(1-tp) and chkc:IsDestructable() end
......
......@@ -47,7 +47,7 @@ function c10117149.splimit(e,c,tp,sumtp,sumpos)
return not c:IsSetCard(0xab) and bit.band(sumtp,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end
function c10117149.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c10117149.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c10117149.desfilter(chkc) end
......
......@@ -32,7 +32,7 @@ function c10383554.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RegisterEffect(e1)
end
function c10383554.filter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c10383554.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 c10383554.filter(chkc) end
......
......@@ -10,7 +10,7 @@ function c10389794.initial_effect(c)
c:RegisterEffect(e1)
end
function c10389794.filter(c)
return c:IsFaceup() and c:IsDestructable() and (c:GetBaseAttack()==0 or c:GetBaseDefense()==0)
return c:IsFaceup() and (c:GetBaseAttack()==0 or c:GetBaseDefense()==0)
end
function c10389794.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -61,7 +61,7 @@ function c10678778.filter(c,tp)
and Duel.IsExistingMatchingCard(c10678778.filter2,tp,0,LOCATION_MZONE,1,nil,ctype)
end
function c10678778.filter2(c,ctype)
return c:IsFaceup() and c:IsType(ctype) and c:IsDestructable()
return c:IsFaceup() and c:IsType(ctype)
end
function c10678778.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(1-tp) and c10678778.filter(chkc,tp) end
......
......@@ -31,7 +31,7 @@ function c10755984.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c10755984.filter(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c10755984.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and c10755984.filter(chkc) end
......
......@@ -46,7 +46,7 @@ function c10875327.descon(e,tp,eg,ep,ev,re,r,rp)
and (not re or re:GetOwner()~=c)
end
function c10875327.desfilter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c10875327.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -10,7 +10,7 @@ function c11052544.initial_effect(c)
c:RegisterEffect(e1)
end
function c11052544.filter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c11052544.cfilter(c)
return c:IsFaceup() and c:IsAttackPos() and c:IsSetCard(0x100d)
......
......@@ -46,7 +46,7 @@ function c11163040.counter(e,tp,eg,ep,ev,re,r,rp)
end
end
function c11163040.filter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0xd3) and c:IsDestructable()
return c:IsFaceup() and c:IsSetCard(0xd3)
and Duel.IsExistingMatchingCard(c11163040.chkfilter,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetControler(),c:GetOriginalCode())
end
function c11163040.chkfilter(c,e,tp,cc,code)
......
......@@ -29,7 +29,7 @@ function c11232355.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,1000)
end
function c11232355.filter(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c11232355.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(1-tp) and c11232355.filter(chkc) end
......
......@@ -19,7 +19,7 @@ function c11264180.filter(c)
return c:IsFaceup() and c:IsSetCard(0x27)
end
function c11264180.dfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c11264180.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c11264180.filter(chkc) end
......
......@@ -29,7 +29,7 @@ function c11373345.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp)
end
function c11373345.filter(c)
return c:IsFaceup() and c:IsLevelBelow(5) and c:IsDestructable()
return c:IsFaceup() and c:IsLevelBelow(5)
end
function c11373345.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c11373345.filter,tp,0,LOCATION_MZONE,1,nil) end
......
......@@ -22,7 +22,7 @@ function c11596936.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.ShuffleHand(tp)
end
function c11596936.filter(c)
return c:IsFacedown() and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsFacedown() and c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c11596936.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c11596936.filter,tp,0,LOCATION_ONFIELD,1,nil) end
......
......@@ -43,7 +43,7 @@ function c11609969.sccon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c11609969.filter(c,lv)
return c:IsFaceup() and not c:IsSetCard(0xaf) and c:IsLevelAbove(lv) and c:IsDestructable()
return c:IsFaceup() and not c:IsSetCard(0xaf) and c:IsLevelAbove(lv)
end
function c11609969.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -13,7 +13,7 @@ function c12197543.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and r==REASON_RULE
end
function c12197543.dfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c12197543.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
......
......@@ -14,7 +14,7 @@ function c12216615.condition(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer() and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,2,nil,36623431)
end
function c12216615.filter(c)
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsDestructable()
return c:IsPosition(POS_FACEUP_ATTACK)
end
function c12216615.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c12216615.filter,tp,0,LOCATION_MZONE,1,nil) end
......
......@@ -14,7 +14,7 @@ function c1224927.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
end
function c1224927.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c1224927.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -15,7 +15,7 @@ function c12624008.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end
function c12624008.filter(c)
return (c:IsFacedown() or c:GetAttribute()~=ATTRIBUTE_LIGHT) and c:IsDestructable()
return (c:IsFacedown() or c:GetAttribute()~=ATTRIBUTE_LIGHT)
end
function c12624008.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -108,7 +108,7 @@ function c12670770.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_REMOVED)
end
function c12670770.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c12670770.spop(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
......
......@@ -46,7 +46,7 @@ function c12697630.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
end
function c12697630.filter(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c12697630.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -10,7 +10,7 @@ function c13210191.initial_effect(c)
c:RegisterEffect(e1)
end
function c13210191.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c13210191.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -43,7 +43,7 @@ function c13250922.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.SendtoGrave(g,REASON_COST)
end
function c13250922.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c13250922.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetAttackAnnouncedCount()==0 end
......
......@@ -48,7 +48,7 @@ function c13293158.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp
end
function c13293158.filter(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c13293158.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -72,7 +72,7 @@ function c13317419.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end
function c13317419.desfilter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c13317419.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c13317419.desfilter(chkc) end
......
......@@ -48,7 +48,7 @@ function c13391185.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
function c13391185.desfilter(c)
return c:IsFaceup() and c:IsSetCard(0x207a) and c:IsType(TYPE_EQUIP) and c:IsDestructable()
return c:IsFaceup() and c:IsSetCard(0x207a) and c:IsType(TYPE_EQUIP)
end
function c13391185.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
......
......@@ -16,7 +16,7 @@ function c13574687.initial_effect(c)
c:RegisterEffect(e1)
end
function c13574687.filter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c13574687.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c13574687.filter(chkc) end
......
......@@ -15,7 +15,7 @@ function c13626450.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function c13626450.filter(c)
return c:IsFaceup() and c:GetType()==TYPE_TRAP+TYPE_CONTINUOUS and c:IsDestructable()
return c:IsFaceup() and c:GetType()==TYPE_TRAP+TYPE_CONTINUOUS
end
function c13626450.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c13626450.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
......
......@@ -26,7 +26,7 @@ function c13683298.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp)
end
function c13683298.filter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c13683298.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c13683298.filter,tp,0,LOCATION_MZONE,1,nil) end
......
......@@ -35,7 +35,7 @@ function c13685271.condition(e,tp,eg,ep,ev,re,r,rp)
return ct==2 or ct==3
end
function c13685271.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c13685271.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c13685271.filter,tp,0,LOCATION_ONFIELD,1,nil) end
......
......@@ -15,7 +15,7 @@ function c13846680.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end
function c13846680.filter(c)
return (c:IsFacedown() or c:GetAttribute()~=ATTRIBUTE_FIRE) and c:IsDestructable()
return (c:IsFacedown() or c:GetAttribute()~=ATTRIBUTE_FIRE)
end
function c13846680.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -58,10 +58,10 @@ function c14756848.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST)
end
function c14756848.desfilter1(c)
return c:GetSequence()<5 and c:IsDestructable()
return c:GetSequence()<5
end
function c14756848.desfilter2(c)
return (c:GetSequence()==6 or c:GetSequence()==7) and c:IsDestructable()
return (c:GetSequence()==6 or c:GetSequence()==7)
end
function c14756848.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -26,7 +26,7 @@ function c14883228.handcon(e)
and Duel.IsExistingMatchingCard(c14883228.cfilter,tp,0,LOCATION_ONFIELD,2,nil)
end
function c14883228.filter(c)
return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c14883228.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c14883228.filter(chkc) and chkc~=e:GetHandler() end
......
......@@ -29,7 +29,7 @@ function c15146890.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,c15146890.cfilter,1,1,REASON_COST+REASON_DISCARD)
end
function c15146890.filter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c15146890.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c15146890.filter(chkc) end
......
......@@ -50,7 +50,7 @@ function c15545291.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
end
function c15545291.desfilter(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c15545291.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c15545291.desfilter(chkc) end
......
......@@ -23,7 +23,7 @@ function c15582767.initial_effect(c)
c:RegisterEffect(e2)
end
function c15582767.filter(c)
return (c:GetSequence()==6 or c:GetSequence()==7) and c:IsDestructable()
return (c:GetSequence()==6 or c:GetSequence()==7)
end
function c15582767.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c15582767.filter(chkc) end
......
......@@ -11,7 +11,7 @@ function c1571945.initial_effect(c)
c:RegisterEffect(e1)
end
function c1571945.filter(c)
return c:IsDefensePos() and c:IsDestructable()
return c:IsDefensePos()
end
function c1571945.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c1571945.filter(chkc) end
......
......@@ -28,7 +28,7 @@ function c15936370.pencon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)==0
end
function c15936370.desfilter(c)
return (c:GetSequence()==6 or c:GetSequence()==7) and c:IsDestructable()
return (c:GetSequence()==6 or c:GetSequence()==7)
end
function c15936370.pentg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(1-tp) and c15936370.desfilter(chkc) end
......
......@@ -62,7 +62,7 @@ function c15939229.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c15939229.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c15939229.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c15939229.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
......
......@@ -17,7 +17,7 @@ function c16272453.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c16272453.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
end
function c16272453.dfilter(c)
return c:IsFaceup() and c:IsSetCard(0x61) and c:IsDestructable()
return c:IsFaceup() and c:IsSetCard(0x61)
end
function c16272453.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) end
......
......@@ -21,7 +21,7 @@ function c16437822.initial_effect(c)
c:RegisterEffect(e2)
end
function c16437822.filter(c)
return c:GetEquipCount()~=0 and c:GetEquipGroup():IsExists(Card.IsCode,1,nil,75560629) and c:IsDestructable()
return c:GetEquipCount()~=0 and c:GetEquipGroup():IsExists(Card.IsCode,1,nil,75560629)
end
function c16437822.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c16437822.filter(chkc) end
......
......@@ -22,7 +22,7 @@ function c16556849.costfilter(co)
return co:IsAttribute(ATTRIBUTE_LIGHT) and co:IsAbleToRemoveAsCost()
end
function c16556849.filter(c,atk)
return c:IsFaceup() and c:GetAttack()>atk and c:IsDestructable()
return c:IsFaceup() and c:GetAttack()>atk
end
function c16556849.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c16556849.filter(chkc,e:GetHandler():GetAttack()) end
......
......@@ -15,7 +15,7 @@ function c1669772.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function c1669772.filter(c)
return c:IsFaceup() and c:GetType()==TYPE_SPELL+TYPE_CONTINUOUS and c:IsDestructable()
return c:IsFaceup() and c:GetType()==TYPE_SPELL+TYPE_CONTINUOUS
end
function c1669772.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c1669772.filter,tp,LOCATION_SZONE,LOCATION_SZONE,1,nil) end
......
......@@ -60,7 +60,7 @@ function c16886617.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Release(g,REASON_COST)
end
function c16886617.desfilter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c16886617.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c16886617.desfilter(chkc) end
......
......@@ -83,7 +83,7 @@ function c16898077.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
end
function c16898077.dfilter(c,e,sp)
return c:GetSummonPlayer()==sp and c:IsDestructable() and (not e or c:IsRelateToEffect(e))
return c:GetSummonPlayer()==sp and (not e or c:IsRelateToEffect(e))
end
function c16898077.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c16898077.dfilter,1,nil,nil,1-tp) end
......@@ -117,7 +117,7 @@ function c16898077.damcon3(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and rp~=tp
end
function c16898077.sfilter(c,e)
return c:IsFacedown() and c:IsDestructable() and (not e or c:IsRelateToEffect(e))
return c:IsFacedown() and (not e or c:IsRelateToEffect(e))
end
function c16898077.damtg3(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c16898077.sfilter,1,nil) end
......
......@@ -21,7 +21,7 @@ function c16956455.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,c16956455.cfilter,1,1,REASON_COST+REASON_DISCARD)
end
function c16956455.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c16956455.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and c16956455.filter(chkc) end
......
......@@ -11,7 +11,7 @@ function c17449108.initial_effect(c)
c:RegisterEffect(e1)
end
function c17449108.filter(c)
return c:IsFacedown() and c:IsDestructable() and c:IsAbleToRemove()
return c:IsFacedown() and c:IsAbleToRemove()
end
function c17449108.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetLocation()==LOCATION_SZONE and c17449108.filter(chkc) end
......
......@@ -94,7 +94,7 @@ function c17760003.operation1(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoGrave(sg,REASON_EFFECT)
end
function c17760003.filter2(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c17760003.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c17760003.filter2(chkc) end
......@@ -110,7 +110,7 @@ function c17760003.operation2(e,tp,eg,ep,ev,re,r,rp)
end
end
function c17760003.filter3(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsDestructable()
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_LIGHT)
end
function c17760003.target3(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c17760003.filter2(chkc) end
......
......@@ -51,7 +51,7 @@ function c17810268.descost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveCounter(tp,0x1019,2,REASON_COST)
end
function c17810268.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c17810268.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c17810268.filter(chkc) end
......
......@@ -18,7 +18,7 @@ function c1781310.dfilter1(c)
return c:IsDestructable()
end
function c1781310.dfilter2(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c1781310.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c1781310.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,ATTRIBUTE_WIND)
......
......@@ -10,7 +10,7 @@ function c18144506.initial_effect(c)
c:RegisterEffect(e1)
end
function c18144506.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c18144506.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -33,7 +33,7 @@ function c18239909.tgfilter(c)
end
end
function c18239909.desfilter(c)
return c18239909.tgfilter(c) and c:IsDestructable()
return c18239909.tgfilter(c)
and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end
function c18239909.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
......@@ -28,7 +28,7 @@ function c18511599.indcon(e)
return e:GetHandler():GetOverlayCount()~=0
end
function c18511599.filter(c,e,tp)
return c:GetSummonPlayer()==1-tp and c:IsDestructable() and (not e or c:IsRelateToEffect(e))
return c:GetSummonPlayer()==1-tp and (not e or c:IsRelateToEffect(e))
end
function c18511599.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) end
......
......@@ -41,7 +41,7 @@ function c18828179.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,c18828179.cfilter,1,1,REASON_COST+REASON_DISCARD)
end
function c18828179.filter(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c18828179.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c18828179.filter(chkc) end
......
......@@ -33,7 +33,7 @@ function c19025379.destg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end
function c19025379.desfilter2(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c19025379.destg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c19025379.desfilter2(chkc) end
......
......@@ -11,7 +11,7 @@ function c19230407.initial_effect(c)
c:RegisterEffect(e1)
end
function c19230407.filter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c19230407.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c19230407.filter(chkc) end
......
......@@ -34,7 +34,7 @@ function c19357125.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST)
end
function c19357125.filter(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c19357125.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c19357125.filter,tp,0,LOCATION_MZONE,1,nil) end
......
......@@ -57,7 +57,7 @@ function c19441018.filter1(c)
return c:IsDestructable() and Duel.IsExistingTarget(c19441018.filter2,0,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end
function c19441018.filter2(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c19441018.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
......
......@@ -69,7 +69,7 @@ function c1953925.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler()==Duel.GetAttacker() and e:GetHandler():IsRelateToBattle()
end
function c1953925.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c1953925.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() and c1953925.filter(chkc) end
......
......@@ -10,7 +10,7 @@ function c19613556.initial_effect(c)
c:RegisterEffect(e1)
end
function c19613556.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c19613556.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -21,7 +21,7 @@ function c19847532.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
end
function c19847532.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c19847532.cfilter(c)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsAbleToRemoveAsCost()
......
......@@ -11,7 +11,7 @@ function c19980975.initial_effect(c)
c:RegisterEffect(e1)
end
function c19980975.filter(c)
return c:GetCounter(0x1019)>=4 and c:IsDestructable()
return c:GetCounter(0x1019)>=4
end
function c19980975.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c19980975.filter(chkc) end
......
......@@ -22,7 +22,7 @@ function c20056760.initial_effect(c)
c:RegisterEffect(e2)
end
function c20056760.filter(c)
return c:IsFaceup() and c:IsSetCard(0xd1) and c:IsDestructable()
return c:IsFaceup() and c:IsSetCard(0xd1)
end
function c20056760.sptg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c20056760.filter(chkc) end
......
......@@ -10,7 +10,7 @@ function c20101223.initial_effect(c)
c:RegisterEffect(e1)
end
function c20101223.filter(c)
return c:IsRace(RACE_ROCK) and c:IsFaceup() and c:IsDestructable()
return c:IsRace(RACE_ROCK) and c:IsFaceup()
end
function c20101223.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c20101223.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
......@@ -20,7 +20,7 @@ function c20193924.initial_effect(c)
c:RegisterEffect(e3)
end
function c20193924.filter(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c20193924.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c20193924.filter(chkc) end
......
......@@ -51,7 +51,7 @@ function c20281581.rdop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeBattleDamage(tp,ev/2)
end
function c20281581.filter(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c20281581.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c20281581.filter(chkc) end
......
......@@ -16,7 +16,7 @@ function c20351153.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)<=1 and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0
end
function c20351153.filter(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c20351153.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and c20351153.filter(chkc) end
......
......@@ -39,7 +39,7 @@ function c20403123.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function c20403123.filter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c20403123.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c20403123.filter(chkc) end
......
......@@ -11,7 +11,7 @@ function c20727787.initial_effect(c)
c:RegisterEffect(e1)
end
function c20727787.filter(c)
return c:IsType(TYPE_EQUIP) and c:IsDestructable()
return c:IsType(TYPE_EQUIP)
end
function c20727787.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -11,7 +11,7 @@ function c20985997.initial_effect(c)
c:RegisterEffect(e1)
end
function c20985997.filter(c)
return c:GetCounter(0x100e)>0 and c:IsDestructable()
return c:GetCounter(0x100e)>0
end
function c20985997.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c20985997.filter(chkc) end
......
......@@ -34,7 +34,7 @@ end
function c21051146.filter(c,cc,tp)
local ct=math.ceil(c:GetAttack()/700)
if ct==0 then ct=1 end
return c:IsFaceup() and c:IsDestructable() and cc:IsCanRemoveCounter(tp,0x1,ct,REASON_COST)
return c:IsFaceup() and cc:IsCanRemoveCounter(tp,0x1,ct,REASON_COST)
end
function c21051146.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c21051146.filter(chkc,e:GetHandler(),tp) end
......
......@@ -87,7 +87,7 @@ function c2111707.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function c2111707.filter(c)
return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c2111707.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and c2111707.filter(chkc) end
......
......@@ -11,7 +11,7 @@ function c21219755.initial_effect(c)
c:RegisterEffect(e1)
end
function c21219755.filter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c21219755.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c21219755.filter(chkc) end
......
......@@ -77,7 +77,7 @@ function c21223277.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x207a)
end
function c21223277.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c21223277.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c21223277.cfilter,tp,LOCATION_SZONE,0,1,nil)
......
......@@ -32,7 +32,7 @@ function c21313376.descost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function c21313376.filter(c,atk)
return c:IsFaceup() and c:IsAttackBelow(atk) and c:IsDestructable()
return c:IsFaceup() and c:IsAttackBelow(atk)
end
function c21313376.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local atk=e:GetHandler():GetBattleTarget():GetBaseAttack()
......
......@@ -10,7 +10,7 @@ function c21323861.initial_effect(c)
c:RegisterEffect(e1)
end
function c21323861.filter(c)
return c:IsRace(RACE_MACHINE) and c:IsFaceup() and c:IsDestructable()
return c:IsRace(RACE_MACHINE) and c:IsFaceup()
end
function c21323861.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c21323861.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
......@@ -14,7 +14,7 @@ function c21481146.condition(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer() and Duel.IsExistingMatchingCard(Card.IsPosition,tp,0,LOCATION_MZONE,3,nil,POS_FACEUP_ATTACK)
end
function c21481146.filter(c)
return c:IsAttackPos() and c:IsDestructable()
return c:IsAttackPos()
end
function c21481146.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c21481146.filter,tp,0,LOCATION_MZONE,1,nil) end
......
......@@ -15,7 +15,7 @@ function c2158562.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
end
function c2158562.filter(c)
return c:IsFaceup() and c:IsType(TYPE_SPELL) and c:IsDestructable()
return c:IsFaceup() and c:IsType(TYPE_SPELL)
end
function c2158562.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -39,7 +39,7 @@ function c21772453.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
end
function c21772453.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c21772453.operation(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
......
......@@ -19,7 +19,7 @@ function c2203790.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
end
function c2203790.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c2203790.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c2203790.filter(chkc) end
......
......@@ -52,7 +52,7 @@ function c22147147.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetAttacker()==e:GetHandler():GetEquipTarget()
end
function c22147147.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c22147147.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c22147147.desfilter(chkc) end
......
......@@ -39,10 +39,10 @@ end
function c22617205.filter1(c)
return ((c:IsLocation(LOCATION_MZONE) and c:IsFaceup())
or (c:IsLocation(LOCATION_SZONE) and (c:GetSequence()==6 or c:GetSequence()==7)))
and (c:IsSetCard(0x9c) or c:IsSetCard(0xc4)) and c:IsDestructable()
and (c:IsSetCard(0x9c) or c:IsSetCard(0xc4))
end
function c22617205.filter2(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c22617205.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
......
......@@ -28,7 +28,7 @@ function c22624373.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPosition(POS_FACEUP_ATTACK)
end
function c22624373.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c22624373.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and c22624373.filter(chkc) end
......
......@@ -18,7 +18,7 @@ function c22804644.initial_effect(c)
end
c22804644.material_trap=57728570
function c22804644.tgfilter(c)
return c:IsFaceup() and c:GetAttack()>=1500 and c:IsDestructable()
return c:IsFaceup() and c:GetAttack()>=1500
end
function c22804644.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -19,7 +19,7 @@ function c22869904.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c22869904.cfilter,1,nil,tp)
end
function c22869904.filter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c22869904.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c22869904.filter(chkc) end
......
......@@ -63,7 +63,7 @@ function c22923081.descost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveCounter(tp,0x1,1,REASON_COST)
end
function c22923081.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c22923081.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c22923081.filter(chkc) end
......
......@@ -54,7 +54,7 @@ function c23116808.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
end
function c23116808.desfilter(c)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsDestructable()
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_FIRE)
end
function c23116808.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c23116808.desfilter(chkc) end
......
......@@ -18,7 +18,7 @@ function c2314238.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c2314238.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
end
function c2314238.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c2314238.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -21,7 +21,7 @@ function c23296404.initial_effect(c)
c:RegisterEffect(e2)
end
function c23296404.desfilter(c)
return c:IsFaceup() and c:IsSetCard(0xc8) and c:IsDestructable()
return c:IsFaceup() and c:IsSetCard(0xc8)
end
function c23296404.desfilter2(c,e)
return c23296404.desfilter(c) and c:IsCanBeEffectTarget(e)
......
......@@ -91,7 +91,7 @@ function c23440231.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c23440231.desfilter(c)
return (c:IsFacedown() or not c:IsSetCard(0xc5)) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return (c:IsFacedown() or not c:IsSetCard(0xc5)) and c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c23440231.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c23440231.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
......
......@@ -38,7 +38,7 @@ function c23603403.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_XYZ and e:GetLabel()==1
end
function c23603403.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c23603403.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c23603403.desfilter,tp,0,LOCATION_ONFIELD,1,nil) end
......
......@@ -37,7 +37,7 @@ function c23649496.cfilter(c)
return c:IsFaceup() and Duel.IsExistingMatchingCard(c23649496.filter,0,LOCATION_MZONE,LOCATION_MZONE,1,c,c:GetCode())
end
function c23649496.filter(c,code)
return c:IsFaceup() and c:IsCode(code) and c:IsDestructable()
return c:IsFaceup() and c:IsCode(code)
end
function c23649496.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c23649496.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
......@@ -50,7 +50,7 @@ function c23689697.descon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
end
function c23689697.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c23689697.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c23689697.filter(chkc) end
......
......@@ -12,7 +12,7 @@ function c24413299.initial_effect(c)
c:RegisterEffect(e1)
end
function c24413299.desfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
return c:IsType(TYPE_SPELL+TYPE_TRAP)
end
function c24413299.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0
......
......@@ -32,7 +32,7 @@ function c24731453.spcon(e,tp,eg,ep,ev,re,r,rp)
and Duel.IsExistingMatchingCard(c24731453.cfilter,tp,LOCATION_SZONE,0,1,nil)
end
function c24731453.filter(c)
return c:GetSequence()<5 and c:IsDestructable()
return c:GetSequence()<5
end
function c24731453.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
......@@ -87,7 +87,7 @@ function c25119460.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end
function c25119460.filter(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c25119460.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c25119460.filter(chkc) end
......
......@@ -18,7 +18,7 @@ function c25173686.condition(e,tp,eg,ep,ev,re,r,rp)
return true
end
function c25173686.filter(c)
return c:GetSequence()<5 and c:IsDestructable()
return c:GetSequence()<5
end
function c25173686.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c25173686.filter,tp,0,LOCATION_SZONE,1,nil) end
......
......@@ -80,7 +80,7 @@ function c25524823.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
end
function c25524823.filter(c)
return c:IsFacedown() and c:IsDestructable()
return c:IsFacedown()
end
function c25524823.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=e:GetLabel()
......
......@@ -48,7 +48,7 @@ function c26285788.filter1(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToHand() and not c:IsHasEffect(EFFECT_NECRO_VALLEY)
end
function c26285788.filter2(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c26285788.effectop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,26285788)
......
......@@ -10,7 +10,7 @@ function c26412047.initial_effect(c)
c:RegisterEffect(e1)
end
function c26412047.filter(c)
return c:IsPosition(POS_FACEUP_ATTACK) and c:IsDestructable()
return c:IsPosition(POS_FACEUP_ATTACK)
end
function c26412047.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c26412047.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment