Commit f5f3c42e authored by nekrozar's avatar nekrozar
parent c2bfd0e7
...@@ -20,10 +20,10 @@ function c10731333.initial_effect(c) ...@@ -20,10 +20,10 @@ function c10731333.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c10731333.ptg(e,c) function c10731333.ptg(e,c)
return c:IsSetCard(0x9f) or c:IsSetCard(0x99) return c:IsSetCard(0x9f,0x99)
end end
function c10731333.atkfilter(c) function c10731333.atkfilter(c)
return c:IsFaceup() and (c:IsSetCard(0x9f) or c:IsSetCard(0x99)) return c:IsFaceup() and c:IsSetCard(0x9f,0x99)
end end
function c10731333.atkcon(e,tp,eg,ep,ev,re,r,rp) function c10731333.atkcon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
......
...@@ -29,7 +29,7 @@ end ...@@ -29,7 +29,7 @@ end
function c12255007.actcon(e) function c12255007.actcon(e)
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
return tc and tc:IsControler(tp) and (tc:IsSetCard(0x9f) or tc:IsSetCard(0x99)) return tc and tc:IsControler(tp) and tc:IsSetCard(0x9f,0x99)
end end
function c12255007.condition(e,tp,eg,ep,ev,re,r,rp) function c12255007.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
......
...@@ -90,7 +90,7 @@ function c12289247.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,7 +90,7 @@ function c12289247.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c12289247.cfilter(c) function c12289247.cfilter(c)
return (c:IsSetCard(0x10f2) or c:IsSetCard(0x2073) or c:IsSetCard(0x2017) or c:IsSetCard(0x1046)) return c:IsSetCard(0x10f2,0x2073,0x2017,0x1046)
and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost() and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
and (not c:IsLocation(LOCATION_MZONE) or c:IsFaceup()) and (not c:IsLocation(LOCATION_MZONE) or c:IsFaceup())
end end
......
...@@ -14,7 +14,7 @@ function c128454.initial_effect(c) ...@@ -14,7 +14,7 @@ function c128454.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c128454.thfilter(c) function c128454.thfilter(c)
return ((c:IsLocation(LOCATION_PZONE) and (c:IsSetCard(0x9f) or c:IsSetCard(0x98))) return ((c:IsLocation(LOCATION_PZONE) and c:IsSetCard(0x9f,0x98))
or (c:IsFaceup() and c:IsLocation(LOCATION_MZONE) and c:IsType(TYPE_PENDULUM))) and c:IsAbleToHand() or (c:IsFaceup() and c:IsLocation(LOCATION_MZONE) and c:IsType(TYPE_PENDULUM))) and c:IsAbleToHand()
end end
function c128454.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c128454.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -32,7 +32,7 @@ function c14920218.pcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c14920218.pcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_PZONE,0,1,e:GetHandler(),0x98) return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_PZONE,0,1,e:GetHandler(),0x98)
end end
function c14920218.pfilter(c) function c14920218.pfilter(c)
return c:IsFaceup() and c:IsType(TYPE_PENDULUM) and (c:IsSetCard(0x98) or c:IsSetCard(0x99)) and not c:IsCode(14920218) and c:IsAbleToHand() return c:IsFaceup() and c:IsType(TYPE_PENDULUM) and c:IsSetCard(0x98,0x99) and not c:IsCode(14920218) and c:IsAbleToHand()
end end
function c14920218.ptg(e,tp,eg,ep,ev,re,r,rp,chk) function c14920218.ptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c14920218.pfilter,tp,LOCATION_EXTRA,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c14920218.pfilter,tp,LOCATION_EXTRA,0,1,nil) end
......
...@@ -12,7 +12,7 @@ function c15286412.initial_effect(c) ...@@ -12,7 +12,7 @@ function c15286412.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c15286412.cfilter(c) function c15286412.cfilter(c)
return c:IsFaceup() and (c:IsSetCard(0x42) or c:IsSetCard(0x4b)) and c:IsAbleToRemoveAsCost() return c:IsFaceup() and c:IsSetCard(0x42,0x4b) and c:IsAbleToRemoveAsCost()
end end
function c15286412.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c15286412.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
......
...@@ -14,7 +14,7 @@ function c15520842.initial_effect(c) ...@@ -14,7 +14,7 @@ function c15520842.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c15520842.cfilter(c) function c15520842.cfilter(c)
return c:IsFaceup() and (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) return c:IsFaceup() and c:IsSetCard(0x55,0x7b)
end end
function c15520842.condition(e,tp,eg,ep,ev,re,r,rp) function c15520842.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c15520842.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c15520842.cfilter,tp,LOCATION_MZONE,0,1,nil)
......
...@@ -51,7 +51,7 @@ function c16617334.condition2(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c16617334.condition2(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end end
function c16617334.filter(c) function c16617334.filter(c)
return c:IsFaceup() and (c:IsSetCard(0x9f) or c:IsSetCard(0x99)) return c:IsFaceup() and c:IsSetCard(0x9f,0x99)
end end
function c16617334.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c16617334.target2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsOnField() and c16617334.filter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsOnField() and c16617334.filter(chkc) end
......
...@@ -74,7 +74,7 @@ function c17330916.lvcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -74,7 +74,7 @@ function c17330916.lvcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_DISCARD)
end end
function c17330916.filter(c) function c17330916.filter(c)
return (c:IsSetCard(0x9f) or c:IsSetCard(0x99)) and c:IsType(TYPE_MONSTER) and c:IsLevelAbove(2) return c:IsSetCard(0x9f,0x99) and c:IsType(TYPE_MONSTER) and c:IsLevelAbove(2)
end end
function c17330916.lvtg(e,tp,eg,ep,ev,re,r,rp,chk) function c17330916.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c17330916.filter,tp,LOCATION_HAND,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c17330916.filter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
......
...@@ -48,7 +48,7 @@ function c19036557.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -48,7 +48,7 @@ function c19036557.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(tc,REASON_COST) Duel.SendtoGrave(tc,REASON_COST)
end end
function c19036557.thfilter(c) function c19036557.thfilter(c)
return c:IsType(TYPE_MONSTER) and not c:IsCode(19036557) and (c:IsSetCard(0x400d) or c:IsSetCard(0x113)) and c:IsAbleToHand() return c:IsType(TYPE_MONSTER) and not c:IsCode(19036557) and c:IsSetCard(0x400d,0x113) and c:IsAbleToHand()
end end
function c19036557.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c19036557.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c19036557.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c19036557.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -50,7 +50,7 @@ function c19302550.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -50,7 +50,7 @@ function c19302550.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
function c19302550.thfilter(c) function c19302550.thfilter(c)
return (c:IsSetCard(0xaf) or c:IsSetCard(0xae)) and not c:IsCode(19302550) and c:IsAbleToHand() return c:IsSetCard(0xaf,0xae) and not c:IsCode(19302550) and c:IsAbleToHand()
end end
function c19302550.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c19302550.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c19302550.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c19302550.thfilter(chkc) end
......
...@@ -13,7 +13,7 @@ function c19580308.initial_effect(c) ...@@ -13,7 +13,7 @@ function c19580308.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c19580308.cfilter(c,ft) function c19580308.cfilter(c,ft)
return (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and (c:IsSetCard(0xaf) or c:IsSetCard(0xae)) return (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and c:IsSetCard(0xaf,0xae)
and not c:IsCode(19580308) and c:IsAbleToGraveAsCost() and (ft>0 or c:GetSequence()<5) and not c:IsCode(19580308) and c:IsAbleToGraveAsCost() and (ft>0 or c:GetSequence()<5)
end end
function c19580308.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c19580308.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -66,7 +66,7 @@ function c20409757.aclimit(e,re,tp) ...@@ -66,7 +66,7 @@ function c20409757.aclimit(e,re,tp)
return re:IsActiveType(TYPE_TRAP) and re:IsHasType(EFFECT_TYPE_ACTIVATE) return re:IsActiveType(TYPE_TRAP) and re:IsHasType(EFFECT_TYPE_ACTIVATE)
end end
function c20409757.slfilter(c) function c20409757.slfilter(c)
return c:IsSetCard(0x98) or c:IsSetCard(0x99) return c:IsSetCard(0x98,0x99)
end end
function c20409757.slcon(e) function c20409757.slcon(e)
return not Duel.IsExistingMatchingCard(c20409757.slfilter,e:GetHandlerPlayer(),LOCATION_PZONE,0,1,e:GetHandler()) return not Duel.IsExistingMatchingCard(c20409757.slfilter,e:GetHandlerPlayer(),LOCATION_PZONE,0,1,e:GetHandler())
......
...@@ -25,12 +25,12 @@ function c20773176.initial_effect(c) ...@@ -25,12 +25,12 @@ function c20773176.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c20773176.splimit(e,c,sump,sumtype,sumpos,targetp) function c20773176.splimit(e,c,sump,sumtype,sumpos,targetp)
if c:IsSetCard(0xb4) or c:IsSetCard(0xc4) then return false end if c:IsSetCard(0xb4,0xc4) then return false end
return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end end
function c20773176.filter(c,tp) function c20773176.filter(c,tp)
return c:IsReason(REASON_BATTLE+REASON_EFFECT) return c:IsReason(REASON_BATTLE+REASON_EFFECT)
and (c:IsSetCard(0xb4) or c:IsSetCard(0xc4)) and not c:IsCode(20773176) and c:IsSetCard(0xb4,0xc4) and not c:IsCode(20773176)
and c:GetPreviousControler()==tp and c:GetPreviousControler()==tp
and ((c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)) and ((c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP))
or c:IsPreviousLocation(LOCATION_PZONE)) or c:IsPreviousLocation(LOCATION_PZONE))
......
...@@ -23,14 +23,14 @@ function c21495657.initial_effect(c) ...@@ -23,14 +23,14 @@ function c21495657.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c21495657.splimit(e,c,sump,sumtype,sumpos,targetp) function c21495657.splimit(e,c,sump,sumtype,sumpos,targetp)
if c:IsSetCard(0x9e) or c:IsSetCard(0xc4) then return false end if c:IsSetCard(0x9e,0xc4) then return false end
return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end end
function c21495657.condition(e,tp,eg,ep,ev,re,r,rp) function c21495657.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) or e:GetHandler():IsPreviousLocation(LOCATION_DECK) return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) or e:GetHandler():IsPreviousLocation(LOCATION_DECK)
end end
function c21495657.filter(c) function c21495657.filter(c)
return c:IsFaceup() and (c:IsSetCard(0x9e) or c:IsSetCard(0xc4)) and not c:IsType(TYPE_TUNER) and not c:IsCode(21495657) return c:IsFaceup() and c:IsSetCard(0x9e,0xc4) and not c:IsType(TYPE_TUNER) and not c:IsCode(21495657)
end end
function c21495657.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c21495657.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c21495657.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c21495657.filter(chkc) end
......
...@@ -30,14 +30,14 @@ function c22617205.initial_effect(c) ...@@ -30,14 +30,14 @@ function c22617205.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c22617205.splimit(e,c,sump,sumtype,sumpos,targetp) function c22617205.splimit(e,c,sump,sumtype,sumpos,targetp)
if c:IsSetCard(0x9c) or c:IsSetCard(0xc4) then return false end if c:IsSetCard(0x9c,0xc4) then return false end
return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end end
function c22617205.condition(e,tp,eg,ep,ev,re,r,rp) function c22617205.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c22617205.filter1(c) function c22617205.filter1(c)
return c:IsFaceup() and (c:IsSetCard(0x9c) or c:IsSetCard(0xc4)) return c:IsFaceup() and c:IsSetCard(0x9c,0xc4)
end end
function c22617205.filter2(c) function c22617205.filter2(c)
return c:IsFacedown() return c:IsFacedown()
......
...@@ -26,7 +26,7 @@ function c23166823.initial_effect(c) ...@@ -26,7 +26,7 @@ function c23166823.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c23166823.splimit(e,c,sump,sumtype,sumpos,targetp) function c23166823.splimit(e,c,sump,sumtype,sumpos,targetp)
if c:IsSetCard(0xb5) or c:IsSetCard(0xc4) then return false end if c:IsSetCard(0xb5,0xc4) then return false end
return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end end
function c23166823.condition(e,tp,eg,ep,ev,re,r,rp) function c23166823.condition(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -55,7 +55,7 @@ function c23377694.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c23377694.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c23377694.cfilter,1,nil,tp) return eg:IsExists(c23377694.cfilter,1,nil,tp)
end end
function c23377694.spfilter(c,e,tp) function c23377694.spfilter(c,e,tp)
return (c:IsSetCard(0x9f) or c:IsSetCard(0x99)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x9f,0x99) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c23377694.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c23377694.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_PZONE) and c23377694.spfilter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_PZONE) and c23377694.spfilter(chkc,e,tp) end
......
...@@ -32,7 +32,7 @@ function c23893227.initial_effect(c) ...@@ -32,7 +32,7 @@ function c23893227.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c23893227.filter(c) function c23893227.filter(c)
return (c:IsSetCard(0x93) or c:IsSetCard(0x94)) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0x93,0x94) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end end
function c23893227.target(e,tp,eg,ep,ev,re,r,rp,chk) function c23893227.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -55,7 +55,7 @@ function c26493435.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -55,7 +55,7 @@ function c26493435.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveCounter(tp,0x30,2,REASON_COST) e:GetHandler():RemoveCounter(tp,0x30,2,REASON_COST)
end end
function c26493435.filter(c,e,tp) function c26493435.filter(c,e,tp)
return (c:IsSetCard(0x8f) or c:IsSetCard(0x54) or c:IsSetCard(0x59) or c:IsSetCard(0x82)) return c:IsSetCard(0x8f,0x54,0x59,0x82)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c26493435.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c26493435.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -13,7 +13,7 @@ function c26845680.initial_effect(c) ...@@ -13,7 +13,7 @@ function c26845680.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c26845680.costfilter(c) function c26845680.costfilter(c)
return (c:IsSetCard(0xfe) or c:IsSetCard(0x11b)) and c:IsType(TYPE_MONSTER) and (c:IsFaceup() or not c:IsLocation(LOCATION_MZONE)) and c:IsAbleToGraveAsCost() return c:IsSetCard(0xfe,0x11b) and c:IsType(TYPE_MONSTER) and (c:IsFaceup() or not c:IsLocation(LOCATION_MZONE)) and c:IsAbleToGraveAsCost()
end end
function c26845680.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c26845680.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c26845680.costfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c26845680.costfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil) end
......
...@@ -28,7 +28,7 @@ function c27813661.initial_effect(c) ...@@ -28,7 +28,7 @@ function c27813661.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c27813661.tgtg(e,c) function c27813661.tgtg(e,c)
return c:IsSetCard(0x98) or c:IsSetCard(0x9f) or c:IsSetCard(0x99) return c:IsSetCard(0x98,0x9f,0x99)
end end
function c27813661.desfilter(c) function c27813661.desfilter(c)
return c:IsFaceup() return c:IsFaceup()
......
...@@ -21,7 +21,7 @@ function c27873305.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -21,7 +21,7 @@ function c27873305.condition(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetAttacker()==c or Duel.GetAttackTarget()==c) return (Duel.GetAttacker()==c or Duel.GetAttackTarget()==c)
end end
function c27873305.thfilter(c) function c27873305.thfilter(c)
return c:IsFaceup() and (c:IsSetCard(0xaf) or c:IsSetCard(0xae)) and c:IsAbleToHand() return c:IsFaceup() and c:IsSetCard(0xaf,0xae) and c:IsAbleToHand()
end end
function c27873305.eqfilter(c) function c27873305.eqfilter(c)
return c:IsFaceup() and c:IsAbleToChangeControler() return c:IsFaceup() and c:IsAbleToChangeControler()
......
...@@ -64,7 +64,7 @@ function c27970830.cost1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -64,7 +64,7 @@ function c27970830.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RemoveCounter(tp,1,0,0x3,2,REASON_COST) Duel.RemoveCounter(tp,1,0,0x3,2,REASON_COST)
end end
function c27970830.filter1(c) function c27970830.filter1(c)
return c:IsFaceup() and (c:IsSetCard(0x3d) or c:IsSetCard(0x20)) and c:IsType(TYPE_EFFECT) return c:IsFaceup() and c:IsSetCard(0x3d,0x20) and c:IsType(TYPE_EFFECT)
end end
function c27970830.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c27970830.tg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c27970830.filter1(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c27970830.filter1(chkc) end
......
...@@ -41,7 +41,7 @@ function c28039390.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function c28039390.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c28039390.tgfilter(c) function c28039390.tgfilter(c)
return c:IsFaceup() and (c:IsSetCard(0xa9) or c:IsSetCard(0xad)) and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsSetCard(0xa9,0xad) and c:IsType(TYPE_MONSTER)
end end
function c28039390.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c28039390.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c28039390.tgfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c28039390.tgfilter(chkc) end
......
...@@ -31,11 +31,11 @@ function c28201945.initial_effect(c) ...@@ -31,11 +31,11 @@ function c28201945.initial_effect(c)
end end
function c28201945.efilter(e,te) function c28201945.efilter(e,te)
local c=te:GetHandler() local c=te:GetHandler()
return c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) return c:GetType()==TYPE_TRAP and c:IsSetCard(0x4c,0x89)
end end
function c28201945.spcon(e,tp,eg,ep,ev,re,r,rp) function c28201945.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=re:GetHandler() local c=re:GetHandler()
return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) and e:GetHandler():GetFlagEffect(1)>0 return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and c:GetType()==TYPE_TRAP and c:IsSetCard(0x4c,0x89) and e:GetHandler():GetFlagEffect(1)>0
end end
function c28201945.filter(c,e,tp,ft) function c28201945.filter(c,e,tp,ft)
return c:IsSetCard(0x108a) and c:GetCode()~=28201945 and c:IsType(TYPE_MONSTER) and (c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))) return c:IsSetCard(0x108a) and c:GetCode()~=28201945 and c:IsType(TYPE_MONSTER) and (c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)))
......
...@@ -26,7 +26,7 @@ function c28770951.initial_effect(c) ...@@ -26,7 +26,7 @@ function c28770951.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c28770951.matfilter(c) function c28770951.matfilter(c)
return c:IsFaceup() and (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsSetCard(0x55,0x7b) and c:IsType(TYPE_XYZ)
end end
function c28770951.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c28770951.mattg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c28770951.matfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c28770951.matfilter(chkc) end
...@@ -42,7 +42,7 @@ function c28770951.matop(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c28770951.matop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c28770951.filter(c,e) function c28770951.filter(c,e)
return (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) and c:IsAbleToDeck() and c:IsCanBeEffectTarget(e) return c:IsSetCard(0x55,0x7b) and c:IsAbleToDeck() and c:IsCanBeEffectTarget(e)
end end
function c28770951.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c28770951.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c28770951.filter(chkc,e) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c28770951.filter(chkc,e) end
......
...@@ -12,7 +12,7 @@ function c29666221.initial_effect(c) ...@@ -12,7 +12,7 @@ function c29666221.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c29666221.cfilter(c) function c29666221.cfilter(c)
return c:IsSetCard(0xfe) or c:IsSetCard(0x11b) return c:IsSetCard(0xfe,0x11b)
end end
function c29666221.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c29666221.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c29666221.cfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c29666221.cfilter,1,nil) end
......
...@@ -23,7 +23,7 @@ function c31111109.initial_effect(c) ...@@ -23,7 +23,7 @@ function c31111109.initial_effect(c)
end end
c31111109.material_setcode=0x8 c31111109.material_setcode=0x8
function c31111109.ffilter(c,fc) function c31111109.ffilter(c,fc)
return c:IsFusionSetCard(0x9) or c:IsFusionSetCard(0x1f) or c:IsFusionSetCard(0x8) return c:IsFusionSetCard(0x9,0x1f,0x8)
end end
function c31111109.ffilter1(c,fc) function c31111109.ffilter1(c,fc)
return c:IsFusionSetCard(0x9) return c:IsFusionSetCard(0x9)
...@@ -35,7 +35,7 @@ function c31111109.ffilter3(c,fc) ...@@ -35,7 +35,7 @@ function c31111109.ffilter3(c,fc)
return c:IsFusionSetCard(0x8) return c:IsFusionSetCard(0x8)
end end
function c31111109.filter(c) function c31111109.filter(c)
return (c:IsSetCard(0x9) or c:IsSetCard(0x1f) or c:IsSetCard(0x8)) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x9,0x1f,0x8) and c:IsType(TYPE_MONSTER)
and not c:IsForbidden() and c:IsAbleToRemove() and not c:IsForbidden() and c:IsAbleToRemove()
end end
function c31111109.copytg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c31111109.copytg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -14,7 +14,7 @@ function c32360466.filter1(c) ...@@ -14,7 +14,7 @@ function c32360466.filter1(c)
return c:IsRace(RACE_WARRIOR) and c:IsAbleToHand() return c:IsRace(RACE_WARRIOR) and c:IsAbleToHand()
end end
function c32360466.filter2(c) function c32360466.filter2(c)
return c:IsSetCard(0x10cf) or c:IsSetCard(0xbd) return c:IsSetCard(0x10cf,0xbd)
end end
function c32360466.target(e,tp,eg,ep,ev,re,r,rp,chk) function c32360466.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c32360466.filter1,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(c32360466.filter1,tp,LOCATION_DECK,0,nil)
......
...@@ -38,7 +38,7 @@ function c3356494.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c3356494.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end end
function c3356494.thfilter(c) function c3356494.thfilter(c)
return (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x55,0x7b) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c3356494.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c3356494.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c3356494.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c3356494.thfilter(chkc) end
......
...@@ -29,7 +29,7 @@ function c34838437.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,7 +29,7 @@ function c34838437.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function c34838437.spfilter(c,e,tp) function c34838437.spfilter(c,e,tp)
return c:IsLevelBelow(4) and (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsSetCard(0x55,0x7b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c34838437.target(e,tp,eg,ep,ev,re,r,rp,chk) function c34838437.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -22,7 +22,7 @@ function c35950025.initial_effect(c) ...@@ -22,7 +22,7 @@ function c35950025.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c35950025.cfilter(c) function c35950025.cfilter(c)
return c:IsFaceup() and (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) return c:IsFaceup() and c:IsSetCard(0x55,0x7b)
end end
function c35950025.ntcon(e,c,minc) function c35950025.ntcon(e,c,minc)
if c==nil then return true end if c==nil then return true end
......
...@@ -11,7 +11,7 @@ function c36693940.initial_effect(c) ...@@ -11,7 +11,7 @@ function c36693940.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c36693940.filter(c,e,tp) function c36693940.filter(c,e,tp)
return (c:IsSetCard(0xa9) or c:IsSetCard(0xc3)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xa9,0xc3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c36693940.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c36693940.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c36693940.filter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c36693940.filter(chkc,e,tp) end
......
...@@ -36,7 +36,7 @@ function c38695361.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -36,7 +36,7 @@ function c38695361.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
function c38695361.atkfilter(c) function c38695361.atkfilter(c)
return c:IsFaceup() and (c:IsSetCard(0x10cf) or c:IsSetCard(0xbd)) return c:IsFaceup() and c:IsSetCard(0x10cf,0xbd)
end end
function c38695361.atktg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c38695361.atktg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c38695361.atkfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c38695361.atkfilter(chkc) end
......
...@@ -70,7 +70,7 @@ function c42160203.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -70,7 +70,7 @@ function c42160203.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoDeck(c,nil,0,REASON_COST) Duel.SendtoDeck(c,nil,0,REASON_COST)
end end
function c42160203.spfilter(c,e,tp) function c42160203.spfilter(c,e,tp)
return c:IsFaceup() and (c:IsSetCard(0x10f8) or c:IsSetCard(0x20f8)) return c:IsFaceup() and c:IsSetCard(0x10f8,0x20f8)
and c:IsType(TYPE_PENDULUM) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) and c:IsType(TYPE_PENDULUM) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c42160203.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c42160203.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -62,14 +62,14 @@ function c42925441.effcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -62,14 +62,14 @@ function c42925441.effcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RegisterFlagEffect(42925441,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(42925441,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end end
function c42925441.costfilter1(c,e,tp) function c42925441.costfilter1(c,e,tp)
return c:IsFaceup() and (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) and Duel.GetMZoneCount(tp,c)>0 and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsSetCard(0x55,0x7b) and Duel.GetMZoneCount(tp,c)>0 and c:IsAbleToGraveAsCost()
and Duel.IsExistingMatchingCard(c42925441.spfilter1,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetOriginalCode()) and Duel.IsExistingMatchingCard(c42925441.spfilter1,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetOriginalCode())
end end
function c42925441.spfilter1(c,e,tp,code) function c42925441.spfilter1(c,e,tp,code)
return c:IsSetCard(0x55) and c:GetOriginalCode()~=code and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x55) and c:GetOriginalCode()~=code and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c42925441.costfilter2(c) function c42925441.costfilter2(c)
return c:IsFaceup() and (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsSetCard(0x55,0x7b) and c:IsAbleToGraveAsCost()
end end
function c42925441.thfilter(c) function c42925441.thfilter(c)
return c:IsSetCard(0x55) and not c:IsCode(42925441) and c:IsAbleToHand() return c:IsSetCard(0x55) and not c:IsCode(42925441) and c:IsAbleToHand()
......
...@@ -36,7 +36,7 @@ function c43147039.initial_effect(c) ...@@ -36,7 +36,7 @@ function c43147039.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c43147039.sprfilter(c) function c43147039.sprfilter(c)
return c:IsFaceup() and (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) return c:IsFaceup() and c:IsSetCard(0x55,0x7b)
end end
function c43147039.sprcon(e,c) function c43147039.sprcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -45,7 +45,7 @@ function c45002991.antg(e,c) ...@@ -45,7 +45,7 @@ function c45002991.antg(e,c)
return e:GetHandler():GetLinkedGroup():IsContains(c) return e:GetHandler():GetLinkedGroup():IsContains(c)
end end
function c45002991.cfilter(c,g) function c45002991.cfilter(c,g)
return (c:IsSetCard(0xfe) or c:IsSetCard(0x116)) and g:IsContains(c) return c:IsSetCard(0xfe,0x116) and g:IsContains(c)
end end
function c45002991.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c45002991.discost(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup() local lg=e:GetHandler():GetLinkedGroup()
......
...@@ -25,7 +25,7 @@ function c45215225.initial_effect(c) ...@@ -25,7 +25,7 @@ function c45215225.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c45215225.filter(c,e,tp) function c45215225.filter(c,e,tp)
return (c:IsSetCard(0xa9) or c:IsSetCard(0xc3)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xa9,0xc3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c45215225.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c45215225.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c45215225.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c45215225.filter(chkc,e,tp) end
......
...@@ -31,7 +31,7 @@ function c45803070.initial_effect(c) ...@@ -31,7 +31,7 @@ function c45803070.initial_effect(c)
end end
function c45803070.efilter(e,te) function c45803070.efilter(e,te)
local c=te:GetHandler() local c=te:GetHandler()
return c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) return c:GetType()==TYPE_TRAP and c:IsSetCard(0x4c,0x89)
end end
function c45803070.filter(c,e,tp) function c45803070.filter(c,e,tp)
return c:IsSetCard(0x108a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsSetCard(0x108a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
...@@ -51,7 +51,7 @@ function c45803070.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c45803070.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c45803070.setfilter(c) function c45803070.setfilter(c)
return c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) and c:IsSSetable() return c:GetType()==TYPE_TRAP and c:IsSetCard(0x4c,0x89) and c:IsSSetable()
end end
function c45803070.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c45803070.settg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c45803070.setfilter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c45803070.setfilter(chkc) end
......
...@@ -48,7 +48,7 @@ function c46425662.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -48,7 +48,7 @@ function c46425662.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(tc,REASON_COST) Duel.SendtoGrave(tc,REASON_COST)
end end
function c46425662.thfilter(c) function c46425662.thfilter(c)
return (c:IsSetCard(0x400d) or c:IsSetCard(0x113)) and c:IsType(TYPE_MONSTER) and not c:IsCode(46425662) and c:IsAbleToHand() return c:IsSetCard(0x400d,0x113) and c:IsType(TYPE_MONSTER) and not c:IsCode(46425662) and c:IsAbleToHand()
end end
function c46425662.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c46425662.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c46425662.thfilter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c46425662.thfilter(chkc) end
......
...@@ -40,7 +40,7 @@ function c464362.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function c464362.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
function c464362.atkfilter(c) function c464362.atkfilter(c)
return c:IsFaceup() and (c:IsSetCard(0xa9) or c:IsSetCard(0xad)) return c:IsFaceup() and c:IsSetCard(0xa9,0xad)
end end
function c464362.atkval(e,c) function c464362.atkval(e,c)
return Duel.GetMatchingGroupCount(c464362.atkfilter,c:GetControler(),LOCATION_MZONE,0,nil)*300 return Duel.GetMatchingGroupCount(c464362.atkfilter,c:GetControler(),LOCATION_MZONE,0,nil)*300
......
...@@ -48,7 +48,7 @@ function c46796664.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c46796664.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT) Duel.Destroy(e:GetHandler(),REASON_EFFECT)
end end
function c46796664.tgfilter(c) function c46796664.tgfilter(c)
return (c:IsSetCard(0xaf) or c:IsSetCard(0xae)) and not c:IsCode(46796664) and c:IsAbleToGrave() return c:IsSetCard(0xaf,0xae) and not c:IsCode(46796664) and c:IsAbleToGrave()
end end
function c46796664.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c46796664.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c46796664.tgfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c46796664.tgfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -43,7 +43,7 @@ function c47436247.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -43,7 +43,7 @@ function c47436247.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end end
function c47436247.filter(c,ct,e,tp) function c47436247.filter(c,ct,e,tp)
return c:IsLevelBelow(ct) and (c:IsSetCard(0x3d) or c:IsSetCard(0x20)) return c:IsLevelBelow(ct) and c:IsSetCard(0x3d,0x20)
and c:IsType(TYPE_EFFECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsType(TYPE_EFFECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c47436247.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c47436247.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -19,7 +19,7 @@ function c47660516.filter1(c,e,tp) ...@@ -19,7 +19,7 @@ function c47660516.filter1(c,e,tp)
end end
function c47660516.filter2(c,e,tp,mc,rk,rc,code) function c47660516.filter2(c,e,tp,mc,rk,rc,code)
if c:GetOriginalCode()==6165656 and code~=48995978 then return false end if c:GetOriginalCode()==6165656 and code~=48995978 then return false end
return c:IsRank(rk) and c:IsRace(rc) and (c:IsSetCard(0x1048) or c:IsSetCard(0x1073)) and mc:IsCanBeXyzMaterial(c) return c:IsRank(rk) and c:IsRace(rc) and c:IsSetCard(0x1048,0x1073) and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false)
end end
function c47660516.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c47660516.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -32,7 +32,7 @@ function c55051920.costfilter(c,tp) ...@@ -32,7 +32,7 @@ function c55051920.costfilter(c,tp)
and Duel.IsExistingTarget(c55051920.tgfilter,tp,LOCATION_ONFIELD,0,1,c) and Duel.IsExistingTarget(c55051920.tgfilter,tp,LOCATION_ONFIELD,0,1,c)
end end
function c55051920.tgfilter(c) function c55051920.tgfilter(c)
return c:IsFaceup() and (c:IsSetCard(0xfe) or c:IsSetCard(0x11b)) and not c:IsCode(55051920) return c:IsFaceup() and c:IsSetCard(0xfe,0x11b) and not c:IsCode(55051920)
end end
function c55051920.tgcost(e,tp,eg,ep,ev,re,r,rp,chk) function c55051920.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c55051920.costfilter,tp,LOCATION_GRAVE+LOCATION_MZONE,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c55051920.costfilter,tp,LOCATION_GRAVE+LOCATION_MZONE,0,1,nil,tp) end
...@@ -59,7 +59,7 @@ function c55051920.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,7 @@ function c55051920.tgop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c55051920.repfilter(c,tp) function c55051920.repfilter(c,tp)
return c:IsFaceup() and (c:IsSetCard(0xfe) or c:IsSetCard(0x11b)) and c:IsControler(tp) and c:IsOnField() return c:IsFaceup() and c:IsSetCard(0xfe,0x11b) and c:IsControler(tp) and c:IsOnField()
and c:IsReason(REASON_BATTLE+REASON_EFFECT) and not c:IsReason(REASON_REPLACE) and c:IsReason(REASON_BATTLE+REASON_EFFECT) and not c:IsReason(REASON_REPLACE)
end end
function c55051920.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function c55051920.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -35,10 +35,10 @@ function c55154048.initial_effect(c) ...@@ -35,10 +35,10 @@ function c55154048.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c55154048.eqlimit(e,c) function c55154048.eqlimit(e,c)
return c:IsSetCard(0x42) or c:IsSetCard(0x4b) return c:IsSetCard(0x42,0x4b)
end end
function c55154048.filter(c) function c55154048.filter(c)
return c:IsFaceup() and (c:IsSetCard(0x42) or c:IsSetCard(0x4b)) return c:IsFaceup() and c:IsSetCard(0x42,0x4b)
end end
function c55154048.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c55154048.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c55154048.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c55154048.filter(chkc) end
......
...@@ -21,11 +21,11 @@ function c55312487.initial_effect(c) ...@@ -21,11 +21,11 @@ function c55312487.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c55312487.spfilter1(c,e,tp) function c55312487.spfilter1(c,e,tp)
return (c:IsSetCard(0xfe) or c:IsSetCard(0x116)) and Duel.GetMZoneCount(tp,c)>0 return c:IsSetCard(0xfe,0x116) and Duel.GetMZoneCount(tp,c)>0
and Duel.IsExistingMatchingCard(c55312487.spfilter2,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp,c:GetOriginalCode()) and Duel.IsExistingMatchingCard(c55312487.spfilter2,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp,c:GetOriginalCode())
end end
function c55312487.spfilter2(c,e,tp,code) function c55312487.spfilter2(c,e,tp,code)
return (c:IsSetCard(0xfe) or c:IsSetCard(0x116)) and c:GetOriginalCode()~=code and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xfe,0x116) and c:GetOriginalCode()~=code and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c55312487.target(e,tp,eg,ep,ev,re,r,rp,chk) function c55312487.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -40,10 +40,10 @@ function c55428242.initial_effect(c) ...@@ -40,10 +40,10 @@ function c55428242.initial_effect(c)
end end
function c55428242.efilter(e,te) function c55428242.efilter(e,te)
local c=te:GetHandler() local c=te:GetHandler()
return c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) return c:GetType()==TYPE_TRAP and c:IsSetCard(0x4c,0x89)
end end
function c55428242.etarget(e,c) function c55428242.etarget(e,c)
return c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) return c:GetType()==TYPE_TRAP and c:IsSetCard(0x4c,0x89)
end end
function c55428242.distarget(e,c) function c55428242.distarget(e,c)
return c:GetType()==TYPE_TRAP or c:GetType()==TYPE_TRAP+TYPE_EQUIP return c:GetType()==TYPE_TRAP or c:GetType()==TYPE_TRAP+TYPE_EQUIP
......
...@@ -23,7 +23,7 @@ function c56655675.initial_effect(c) ...@@ -23,7 +23,7 @@ function c56655675.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c56655675.cfilter(c) function c56655675.cfilter(c)
return (c:IsFusionSetCard(0x40b5) or c:IsFusionSetCard(0x10b5) or c:IsFusionSetCard(0x20b5)) return c:IsFusionSetCard(0x40b5,0x10b5,0x20b5)
and c:IsAbleToRemoveAsCost() and c:IsAbleToRemoveAsCost()
end end
function c56655675.condition(e,tp,eg,ep,ev,re,r,rp) function c56655675.condition(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -22,7 +22,7 @@ function c56675280.initial_effect(c) ...@@ -22,7 +22,7 @@ function c56675280.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c56675280.scfilter(c) function c56675280.scfilter(c)
return (c:IsSetCard(0x98) or c:IsSetCard(0x99) or c:IsSetCard(0x9f)) and not c:IsCode(56675280) return c:IsSetCard(0x98,0x99,0x9f) and not c:IsCode(56675280)
end end
function c56675280.sccon(e,tp,eg,ep,ev,re,r,rp) function c56675280.sccon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c56675280.scfilter,tp,LOCATION_PZONE,0,1,e:GetHandler()) return Duel.IsExistingMatchingCard(c56675280.scfilter,tp,LOCATION_PZONE,0,1,e:GetHandler())
......
...@@ -65,7 +65,7 @@ function c57690191.splimit(e,c,sump,sumtype,sumpos,targetp,se) ...@@ -65,7 +65,7 @@ function c57690191.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0x107a) return not c:IsSetCard(0x107a)
end end
function c57690191.drfilter(c) function c57690191.drfilter(c)
return (c:IsSetCard(0x107a) or c:IsSetCard(0x207a)) and c:IsAbleToDeck() return c:IsSetCard(0x107a,0x207a) and c:IsAbleToDeck()
end end
function c57690191.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c57690191.drtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c57690191.drfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c57690191.drfilter(chkc) end
......
...@@ -27,14 +27,14 @@ function c57777714.initial_effect(c) ...@@ -27,14 +27,14 @@ function c57777714.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c57777714.splimit(e,c,sump,sumtype,sumpos,targetp) function c57777714.splimit(e,c,sump,sumtype,sumpos,targetp)
if c:IsSetCard(0xb5) or c:IsSetCard(0xc4) then return false end if c:IsSetCard(0xb5,0xc4) then return false end
return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end end
function c57777714.condition(e,tp,eg,ep,ev,re,r,rp) function c57777714.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM) return e:GetHandler():IsSummonType(SUMMON_TYPE_PENDULUM)
end end
function c57777714.filter(c,e,tp) function c57777714.filter(c,e,tp)
return (c:IsSetCard(0xb5) or c:IsSetCard(0xc4)) and not c:IsCode(57777714) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xb5,0xc4) and not c:IsCode(57777714) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c57777714.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c57777714.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c57777714.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c57777714.filter(chkc,e,tp) end
......
...@@ -28,7 +28,7 @@ function c58016954.initial_effect(c) ...@@ -28,7 +28,7 @@ function c58016954.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c58016954.splimit(e,c,sump,sumtype,sumpos,targetp) function c58016954.splimit(e,c,sump,sumtype,sumpos,targetp)
if c:IsSetCard(0x9d) or c:IsSetCard(0xc4) then return false end if c:IsSetCard(0x9d,0xc4) then return false end
return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end end
function c58016954.condition1(e,tp,eg,ep,ev,re,r,rp) function c58016954.condition1(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -20,7 +20,7 @@ function c58165765.initial_effect(c) ...@@ -20,7 +20,7 @@ function c58165765.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c58165765.cfilter(c) function c58165765.cfilter(c)
return (c:IsSetCard(0x2b) or c:IsSetCard(0x61)) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x2b,0x61) and c:IsAbleToRemoveAsCost()
end end
function c58165765.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c58165765.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c58165765.cfilter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c58165765.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
......
...@@ -42,7 +42,7 @@ function c58468105.tgcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c58468105.tgcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) and aux.bdocon(e,tp,eg,ep,ev,re,r,rp) return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) and aux.bdocon(e,tp,eg,ep,ev,re,r,rp)
end end
function c58468105.tgfilter(c) function c58468105.tgfilter(c)
return (c:IsSetCard(0xc3) or c:IsSetCard(0xa9) or c:IsSetCard(0xad)) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return c:IsSetCard(0xc3,0xa9,0xad) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end end
function c58468105.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c58468105.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
local bc=e:GetHandler():GetBattleTarget() local bc=e:GetHandler():GetBattleTarget()
......
...@@ -21,7 +21,7 @@ function c58504745.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,7 +21,7 @@ function c58504745.cost(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 c58504745.filter1(c) function c58504745.filter1(c)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and (c:IsSetCard(0x79) or c:IsSetCard(0x7c)) and c:IsAbleToDeck() return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsSetCard(0x79,0x7c) and c:IsAbleToDeck()
end end
function c58504745.filter2(c) function c58504745.filter2(c)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsAbleToDeck() return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsAbleToDeck()
......
...@@ -28,7 +28,7 @@ function c58990362.initial_effect(c) ...@@ -28,7 +28,7 @@ function c58990362.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c58990362.splimit(e,c,sump,sumtype,sumpos,targetp) function c58990362.splimit(e,c,sump,sumtype,sumpos,targetp)
if c:IsSetCard(0x9e) or c:IsSetCard(0xc4) then return false end if c:IsSetCard(0x9e,0xc4) then return false end
return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end end
function c58990362.condition1(e,tp,eg,ep,ev,re,r,rp) function c58990362.condition1(e,tp,eg,ep,ev,re,r,rp)
...@@ -39,7 +39,7 @@ function c58990362.condition2(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c58990362.condition2(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp return c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp
end end
function c58990362.thfilter(c) function c58990362.thfilter(c)
return (c:IsSetCard(0x9e) or c:IsSetCard(0xc4)) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsSetCard(0x9e,0xc4) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end end
function c58990362.target(e,tp,eg,ep,ev,re,r,rp,chk) function c58990362.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c58990362.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c58990362.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -12,13 +12,13 @@ function c60222582.initial_effect(c) ...@@ -12,13 +12,13 @@ function c60222582.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c60222582.cfilter(c) function c60222582.cfilter(c)
return c:IsFaceup() and c:IsLevelAbove(5) and (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) return c:IsFaceup() and c:IsLevelAbove(5) and c:IsSetCard(0x55,0x7b)
end end
function c60222582.condition(e,tp,eg,ep,ev,re,r,rp) function c60222582.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c60222582.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c60222582.cfilter,tp,LOCATION_MZONE,0,1,nil)
end end
function c60222582.spfilter(c,e,tp) function c60222582.spfilter(c,e,tp)
return c:IsLevelAbove(5) and (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsLevelAbove(5) and c:IsSetCard(0x55,0x7b) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c60222582.target(e,tp,eg,ep,ev,re,r,rp,chk) function c60222582.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -56,7 +56,7 @@ function c62256492.atkval(e,c) ...@@ -56,7 +56,7 @@ function c62256492.atkval(e,c)
return ct*300 return ct*300
end end
function c62256492.target(e,c) function c62256492.target(e,c)
return c:IsSetCard(0xbf) or c:IsSetCard(0xc0) return c:IsSetCard(0xbf,0xc0)
end end
function c62256492.cfilter(c,tp) function c62256492.cfilter(c,tp)
return c:IsFaceup() and c:IsControler(tp) and c:IsRace(RACE_SPELLCASTER) and c:GetBaseAttack()==1850 return c:IsFaceup() and c:IsControler(tp) and c:IsRace(RACE_SPELLCASTER) and c:GetBaseAttack()==1850
......
...@@ -29,7 +29,7 @@ function c62834295.tgcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,7 +29,7 @@ function c62834295.tgcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c62834295.cfilter,1,nil,1-tp) return eg:IsExists(c62834295.cfilter,1,nil,1-tp)
end end
function c62834295.tgfilter(c) function c62834295.tgfilter(c)
return (c:IsSetCard(0xfe) or c:IsSetCard(0x11b)) and c:IsType(TYPE_MONSTER) and (c:IsAbleToGrave() or c:IsAbleToRemove()) return c:IsSetCard(0xfe,0x11b) and c:IsType(TYPE_MONSTER) and (c:IsAbleToGrave() or c:IsAbleToRemove())
end end
function c62834295.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c62834295.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c62834295.tgfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c62834295.tgfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil) end
......
...@@ -15,7 +15,7 @@ function c63956833.initial_effect(c) ...@@ -15,7 +15,7 @@ function c63956833.initial_effect(c)
Duel.AddCustomActivityCounter(63956833,ACTIVITY_SPSUMMON,c63956833.counterfilter) Duel.AddCustomActivityCounter(63956833,ACTIVITY_SPSUMMON,c63956833.counterfilter)
end end
function c63956833.counterfilter(c) function c63956833.counterfilter(c)
return c:IsSetCard(0x55) or c:IsSetCard(0x7b) return c:IsSetCard(0x55,0x7b)
end end
function c63956833.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c63956833.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,2000) if chk==0 then return Duel.CheckLPCost(tp,2000)
...@@ -35,7 +35,7 @@ function c63956833.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,7 +35,7 @@ function c63956833.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function c63956833.splimit(e,c) function c63956833.splimit(e,c)
return not (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) return not c:IsSetCard(0x55,0x7b)
end end
function c63956833.filter1(c,e,tp) function c63956833.filter1(c,e,tp)
return c:IsSetCard(0x55) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsSetCard(0x55) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
......
...@@ -18,7 +18,7 @@ function c63992027.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,7 +18,7 @@ function c63992027.condition(e,tp,eg,ep,ev,re,r,rp)
return tg:IsExists(Card.IsControler,1,nil,1-tp) return tg:IsExists(Card.IsControler,1,nil,1-tp)
end end
function c63992027.filter(c,e,tp) function c63992027.filter(c,e,tp)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and (c:IsSetCard(0x107b) or c:IsSetCard(0xe5)) and c:GetOverlayCount()>0 return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsSetCard(0x107b,0xe5) and c:GetOverlayCount()>0
and (not e or Duel.IsExistingMatchingCard(c63992027.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c)) and (not e or Duel.IsExistingMatchingCard(c63992027.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c))
end end
function c63992027.spfilter(c,e,tp,ec) function c63992027.spfilter(c,e,tp,ec)
......
...@@ -13,7 +13,7 @@ end ...@@ -13,7 +13,7 @@ end
function c64283880.filter(c,e,tp) function c64283880.filter(c,e,tp)
return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT) return c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousPosition(POS_FACEUP)
and c:GetPreviousControler()==tp and (c:IsSetCard(0x54) or c:IsSetCard(0x82) or c:IsSetCard(0x59)) and c:GetPreviousControler()==tp and c:IsSetCard(0x54,0x82,0x59)
and c:IsCanBeEffectTarget(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeEffectTarget(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c64283880.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c64283880.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...@@ -26,7 +26,7 @@ function c64283880.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -26,7 +26,7 @@ function c64283880.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function c64283880.spfilter(c,e,tp) function c64283880.spfilter(c,e,tp)
return (c:IsSetCard(0x54) or c:IsSetCard(0x82) or c:IsSetCard(0x59)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsSetCard(0x54,0x82,0x59) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c64283880.spop(e,tp,eg,ep,ev,re,r,rp) function c64283880.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
......
...@@ -36,7 +36,7 @@ function c64655485.ffilter(c) ...@@ -36,7 +36,7 @@ function c64655485.ffilter(c)
return c:IsLevelBelow(4) and c:IsFusionType(TYPE_EFFECT) return c:IsLevelBelow(4) and c:IsFusionType(TYPE_EFFECT)
end end
function c64655485.atkfilter(c) function c64655485.atkfilter(c)
return (c:IsSetCard(0x8) or c:IsSetCard(0x1f)) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x8,0x1f) and c:IsType(TYPE_MONSTER)
end end
function c64655485.atkval(e,c) function c64655485.atkval(e,c)
return Duel.GetMatchingGroupCount(c64655485.atkfilter,c:GetControler(),LOCATION_GRAVE,0,nil)*100 return Duel.GetMatchingGroupCount(c64655485.atkfilter,c:GetControler(),LOCATION_GRAVE,0,nil)*100
......
...@@ -72,7 +72,7 @@ function c6511113.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -72,7 +72,7 @@ function c6511113.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RegisterFlagEffect(6511113,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(6511113,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end end
function c6511113.filter1(c) function c6511113.filter1(c)
return c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) and c:IsAbleToGraveAsCost() return c:GetType()==TYPE_TRAP and c:IsSetCard(0x4c,0x89) and c:IsAbleToGraveAsCost()
and c:CheckActivateEffect(false,true,false)~=nil and c:CheckActivateEffect(false,true,false)~=nil
end end
function c6511113.target(e,tp,eg,ep,ev,re,r,rp,chk) function c6511113.target(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -104,7 +104,7 @@ function c6511113.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,7 +104,7 @@ function c6511113.operation(e,tp,eg,ep,ev,re,r,rp)
if op then op(e,tp,eg,ep,ev,re,r,rp) end if op then op(e,tp,eg,ep,ev,re,r,rp) end
end end
function c6511113.filter2(c,e,tp,eg,ep,ev,re,r,rp) function c6511113.filter2(c,e,tp,eg,ep,ev,re,r,rp)
if c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) and c:IsAbleToGraveAsCost() then if c:GetType()==TYPE_TRAP and c:IsSetCard(0x4c,0x89) and c:IsAbleToGraveAsCost() then
if c:CheckActivateEffect(false,true,false)~=nil then return true end if c:CheckActivateEffect(false,true,false)~=nil then return true end
local te=c:GetActivateEffect() local te=c:GetActivateEffect()
if te:GetCode()~=EVENT_CHAINING then return false end if te:GetCode()~=EVENT_CHAINING then return false end
......
...@@ -16,7 +16,7 @@ function c6595475.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -16,7 +16,7 @@ function c6595475.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,Card.IsAbleToGraveAsCost,1,1,REASON_COST) Duel.DiscardHand(tp,Card.IsAbleToGraveAsCost,1,1,REASON_COST)
end end
function c6595475.filter(c) function c6595475.filter(c)
return c:IsType(TYPE_MONSTER) and (c:IsSetCard(0x54) or c:IsSetCard(0x59) or c:IsSetCard(0x82) or c:IsSetCard(0x8f)) and c:IsAbleToHand() return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x54,0x59,0x82,0x8f) and c:IsAbleToHand()
end end
function c6595475.target(e,tp,eg,ep,ev,re,r,rp,chk) function c6595475.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c6595475.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c6595475.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -49,7 +49,7 @@ function c68812773.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function c68812773.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c68812773.spfilter(c,e,tp) function c68812773.spfilter(c,e,tp)
return (c:IsSetCard(0x7b) or c:IsSetCard(0x55)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x7b,0x55) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c68812773.cfilter(c,ft,tp) function c68812773.cfilter(c,ft,tp)
return c:IsRace(RACE_MACHINE) return c:IsRace(RACE_MACHINE)
......
...@@ -12,7 +12,7 @@ function c70083592.initial_effect(c) ...@@ -12,7 +12,7 @@ function c70083592.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c70083592.filter(c,e,tp) function c70083592.filter(c,e,tp)
return (c:IsSetCard(0xa9) or c:IsSetCard(0xad)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xa9,0xad) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c70083592.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c70083592.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c70083592.filter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c70083592.filter(chkc,e,tp) end
......
...@@ -78,7 +78,7 @@ function c71071546.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -78,7 +78,7 @@ function c71071546.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function c71071546.filter(c) function c71071546.filter(c)
return (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x55,0x7b) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c71071546.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c71071546.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c71071546.filter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c71071546.filter(chkc) end
......
...@@ -77,7 +77,7 @@ function c71612253.tgcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -77,7 +77,7 @@ function c71612253.tgcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function c71612253.tgfilter(c) function c71612253.tgfilter(c)
return (c:IsSetCard(0xaf) or c:IsSetCard(0xae)) and c:IsAbleToGrave() return c:IsSetCard(0xaf,0xae) and c:IsAbleToGrave()
end end
function c71612253.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c71612253.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c71612253.tgfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c71612253.tgfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -102,5 +102,5 @@ function c71797713.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,5 +102,5 @@ function c71797713.regop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c71797713.immtg(e,c) function c71797713.immtg(e,c)
return c:IsSetCard(0x400d) or c:IsSetCard(0x113) return c:IsSetCard(0x400d,0x113)
end end
...@@ -37,7 +37,7 @@ function c72181263.desfilter1(c,tp,ec) ...@@ -37,7 +37,7 @@ function c72181263.desfilter1(c,tp,ec)
and Duel.IsExistingTarget(c72181263.desfilter2,tp,LOCATION_ONFIELD,0,1,c,ec) and Duel.IsExistingTarget(c72181263.desfilter2,tp,LOCATION_ONFIELD,0,1,c,ec)
end end
function c72181263.desfilter2(c,ec) function c72181263.desfilter2(c,ec)
return c~=ec and c:IsFaceup() and (c:IsSetCard(0xaf) or c:IsSetCard(0xae)) return c~=ec and c:IsFaceup() and c:IsSetCard(0xaf,0xae)
end end
function c72181263.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c72181263.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
......
...@@ -23,7 +23,7 @@ function c72714461.initial_effect(c) ...@@ -23,7 +23,7 @@ function c72714461.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c72714461.cfilter(c) function c72714461.cfilter(c)
return c:IsSetCard(0x98) or c:IsSetCard(0x9f) return c:IsSetCard(0x98,0x9f)
end end
function c72714461.pencon(e,tp,eg,ep,ev,re,r,rp) function c72714461.pencon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c72714461.cfilter,tp,LOCATION_PZONE,0,1,e:GetHandler()) return Duel.IsExistingMatchingCard(c72714461.cfilter,tp,LOCATION_PZONE,0,1,e:GetHandler())
......
...@@ -48,7 +48,7 @@ function c72819261.sgcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -48,7 +48,7 @@ function c72819261.sgcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(tc,REASON_COST) Duel.SendtoGrave(tc,REASON_COST)
end end
function c72819261.filter(c) function c72819261.filter(c)
return (c:IsSetCard(0x400d) or c:IsSetCard(0x113)) and not c:IsCode(72819261) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return c:IsSetCard(0x400d,0x113) and not c:IsCode(72819261) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end end
function c72819261.sgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c72819261.sgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c72819261.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c72819261.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -39,7 +39,7 @@ function c73511233.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ 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)
end end
function c73511233.thfilter(c) function c73511233.thfilter(c)
return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and (c:IsSetCard(0x98) or c:IsSetCard(0x99) or c:IsSetCard(0x9f)) return (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsSetCard(0x98,0x99,0x9f)
and c:IsType(TYPE_PENDULUM) and c:IsAbleToHand() and c:IsType(TYPE_PENDULUM) and c:IsAbleToHand()
end end
function c73511233.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c73511233.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -84,7 +84,7 @@ function c73639099.setcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,7 +84,7 @@ function c73639099.setcon(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_MONSTER) and rc~=c and rc:IsSetCard(0x108a) and rc:IsControler(tp) and c:GetFlagEffect(1)>0 return re:IsActiveType(TYPE_MONSTER) and rc~=c and rc:IsSetCard(0x108a) and rc:IsControler(tp) and c:GetFlagEffect(1)>0
end end
function c73639099.setfilter(c) function c73639099.setfilter(c)
return (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) and c:GetType()==TYPE_TRAP and c:IsSSetable() return c:IsSetCard(0x4c,0x89) and c:GetType()==TYPE_TRAP and c:IsSSetable()
end end
function c73639099.settg(e,tp,eg,ep,ev,re,r,rp,chk) function c73639099.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c73639099.setfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c73639099.setfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -78,7 +78,7 @@ function c74605254.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -78,7 +78,7 @@ function c74605254.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD) Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end end
function c74605254.thfilter(c) function c74605254.thfilter(c)
return c:IsFaceup() and (c:IsSetCard(0xae) or c:IsSetCard(0xaf)) and c:IsAbleToHand() return c:IsFaceup() and c:IsSetCard(0xae,0xaf) and c:IsAbleToHand()
end end
function c74605254.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c74605254.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c74605254.thfilter(chkc) end if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c74605254.thfilter(chkc) end
......
...@@ -121,7 +121,7 @@ function c76794549.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -121,7 +121,7 @@ function c76794549.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c76794549.cfilter(c) function c76794549.cfilter(c)
return (c:IsSetCard(0x10f2) or c:IsSetCard(0x2073) or c:IsSetCard(0x2017) or c:IsSetCard(0x1046)) return c:IsSetCard(0x10f2,0x2073,0x2017,0x1046)
and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost() and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
and (not c:IsLocation(LOCATION_MZONE) or c:IsFaceup()) and (not c:IsLocation(LOCATION_MZONE) or c:IsFaceup())
end end
......
...@@ -36,7 +36,7 @@ function c77522571.initial_effect(c) ...@@ -36,7 +36,7 @@ function c77522571.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c77522571.costfilter1(c,e,tp) function c77522571.costfilter1(c,e,tp)
return c:IsLevelBelow(4) and (c:IsSetCard(0xa9) or c:IsSetCard(0xad) or c:IsSetCard(0xc3)) return c:IsLevelBelow(4) and c:IsSetCard(0xa9,0xad,0xc3)
and Duel.GetMZoneCount(tp,c)>0 and (c:IsControler(tp) or c:IsFaceup()) and Duel.GetMZoneCount(tp,c)>0 and (c:IsControler(tp) or c:IsFaceup())
and Duel.IsExistingMatchingCard(c77522571.spfilter1,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetLevel(),c:GetCode()) and Duel.IsExistingMatchingCard(c77522571.spfilter1,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetLevel(),c:GetCode())
end end
...@@ -66,7 +66,7 @@ function c77522571.spop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function c77522571.spop1(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c77522571.spfilter2(c,e,tp) function c77522571.spfilter2(c,e,tp)
return (c:IsSetCard(0xa9) or c:IsSetCard(0xad) or c:IsSetCard(0xc3)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xa9,0xad,0xc3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c77522571.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c77522571.sptg2(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
......
...@@ -73,7 +73,7 @@ function c7799906.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,7 +73,7 @@ function c7799906.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c7799906.exfilter(c) function c7799906.exfilter(c)
return c:IsFacedown() or not (c:IsSetCard(0x9f) or (c:IsType(TYPE_PENDULUM) and c:IsSetCard(0x98)) or c:IsSetCard(0x99)) return c:IsFacedown() or not (c:IsSetCard(0x9f,0x99) or (c:IsType(TYPE_PENDULUM) and c:IsSetCard(0x98)))
end end
function c7799906.drcon(e,tp,eg,ep,ev,re,r,rp) function c7799906.drcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -33,7 +33,7 @@ function c78348934.filter2(c,rc) ...@@ -33,7 +33,7 @@ function c78348934.filter2(c,rc)
return c:GetRace()==rc and c:IsAbleToRemove() return c:GetRace()==rc and c:IsAbleToRemove()
end end
function c78348934.filter3(c) function c78348934.filter3(c)
return c:IsFaceup() and (c:IsSetCard(0xd6) or c:IsSetCard(0xd7)) return c:IsFaceup() and c:IsSetCard(0xd6,0xd7)
end end
function c78348934.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c78348934.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(1-tp) and c78348934.filter1(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(1-tp) and c78348934.filter1(chkc) end
......
...@@ -21,7 +21,7 @@ function c79531196.initial_effect(c) ...@@ -21,7 +21,7 @@ function c79531196.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c79531196.filter(c) function c79531196.filter(c)
return (c:IsSetCard(0x1047) or c:IsSetCard(0x9b)) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return c:IsSetCard(0x1047,0x9b) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end end
function c79531196.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c79531196.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c79531196.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c79531196.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil) end
......
...@@ -25,7 +25,7 @@ function c79777187.initial_effect(c) ...@@ -25,7 +25,7 @@ function c79777187.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c79777187.target(e,c) function c79777187.target(e,c)
return c:IsSetCard(0xc6) or c:IsSetCard(0x9f) return c:IsSetCard(0xc6,0x9f)
end end
function c79777187.indct(e,re,r,rp) function c79777187.indct(e,re,r,rp)
if bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0 then if bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0 then
......
...@@ -34,7 +34,7 @@ function c80889750.mfilter1(c) ...@@ -34,7 +34,7 @@ function c80889750.mfilter1(c)
return c:IsFusionSetCard(0xad) and c:IsFusionType(TYPE_FUSION) return c:IsFusionSetCard(0xad) and c:IsFusionType(TYPE_FUSION)
end end
function c80889750.mfilter2(c) function c80889750.mfilter2(c)
return c:IsFusionSetCard(0xa9) or c:IsFusionSetCard(0xc3) return c:IsFusionSetCard(0xa9,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 e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION) return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
......
...@@ -69,7 +69,7 @@ function c8165596.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +69,7 @@ function c8165596.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
end end
function c8165596.filter(c) function c8165596.filter(c)
return c:IsSetCard(0x55) or c:IsSetCard(0x7b) return c:IsSetCard(0x55,0x7b)
end end
function c8165596.target(e,tp,eg,ep,ev,re,r,rp,chk) function c8165596.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c8165596.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c8165596.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -14,7 +14,7 @@ function c82162616.initial_effect(c) ...@@ -14,7 +14,7 @@ function c82162616.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c82162616.cfilter(c) function c82162616.cfilter(c)
return c:IsFaceup() and (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) return c:IsFaceup() and c:IsSetCard(0x55,0x7b)
end end
function c82162616.condition(e,tp,eg,ep,ev,re,r,rp) function c82162616.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c82162616.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c82162616.cfilter,tp,LOCATION_MZONE,0,1,nil)
...@@ -27,7 +27,7 @@ function c82162616.filter1(c,e,tp) ...@@ -27,7 +27,7 @@ function c82162616.filter1(c,e,tp)
and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL) and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL)
end end
function c82162616.filter2(c,e,tp,mc,rk) function c82162616.filter2(c,e,tp,mc,rk)
return c:IsRank(rk) and (c:IsSetCard(0x55) or c:IsSetCard(0x7b)) and mc:IsCanBeXyzMaterial(c) return c:IsRank(rk) and c:IsSetCard(0x55,0x7b) and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false)
end end
function c82162616.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c82162616.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
...@@ -42,7 +42,7 @@ function c82224646.initial_effect(c) ...@@ -42,7 +42,7 @@ function c82224646.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c82224646.tnfilter(c) function c82224646.tnfilter(c)
return c:IsFaceup() and (c:IsSetCard(0x9f) or c:IsSetCard(0x99)) and c:IsLevelAbove(0) and (not c:IsType(TYPE_TUNER) or c:IsLevelAbove(2)) return c:IsFaceup() and c:IsSetCard(0x9f,0x99) and c:IsLevelAbove(0) and (not c:IsType(TYPE_TUNER) or c:IsLevelAbove(2))
end end
function c82224646.tntg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c82224646.tntg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c82224646.tnfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c82224646.tnfilter(chkc) end
...@@ -73,7 +73,7 @@ function c82224646.rmcon(e) ...@@ -73,7 +73,7 @@ function c82224646.rmcon(e)
return c:GetSummonLocation()==LOCATION_EXTRA and c:IsReason(REASON_MATERIAL) and c:IsReason(REASON_SYNCHRO) return c:GetSummonLocation()==LOCATION_EXTRA and c:IsReason(REASON_MATERIAL) and c:IsReason(REASON_SYNCHRO)
end end
function c82224646.spfilter(c,e,tp) function c82224646.spfilter(c,e,tp)
return c:IsLevelBelow(3) and (c:IsSetCard(0x9f) or c:IsSetCard(0x99)) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(3) and c:IsSetCard(0x9f,0x99) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c82224646.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c82224646.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c82224646.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c82224646.spfilter(chkc,e,tp) end
......
...@@ -59,7 +59,7 @@ function c82428674.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,7 @@ function c82428674.thcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsPreviousLocation(LOCATION_ONFIELD) and bit.band(r,REASON_EFFECT)~=0 return c:IsPreviousLocation(LOCATION_ONFIELD) and bit.band(r,REASON_EFFECT)~=0
end end
function c82428674.thfilter(c) function c82428674.thfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and (c:IsSetCard(0x94) or c:IsSetCard(0x93)) and c:IsAbleToHand() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x94,0x93) and c:IsAbleToHand()
end end
function c82428674.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c82428674.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c82428674.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c82428674.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -33,7 +33,7 @@ function c82738277.initial_effect(c) ...@@ -33,7 +33,7 @@ function c82738277.initial_effect(c)
end end
function c82738277.efilter(e,te) function c82738277.efilter(e,te)
local c=te:GetHandler() local c=te:GetHandler()
return c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) return c:GetType()==TYPE_TRAP and c:IsSetCard(0x4c,0x89)
end end
function c82738277.filter(c) function c82738277.filter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x108a) and c:IsAbleToHand() return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x108a) and c:IsAbleToHand()
......
...@@ -49,7 +49,7 @@ function c83032858.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -49,7 +49,7 @@ function c83032858.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(tc,REASON_COST) Duel.SendtoGrave(tc,REASON_COST)
end end
function c83032858.spfilter(c,e,tp) function c83032858.spfilter(c,e,tp)
return c:IsType(TYPE_MONSTER) and not c:IsCode(83032858) and (c:IsSetCard(0x400d) or c:IsSetCard(0x113)) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) return c:IsType(TYPE_MONSTER) and not c:IsCode(83032858) and c:IsSetCard(0x400d,0x113) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
end end
function c83032858.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c83032858.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c83032858.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c83032858.spfilter(chkc,e,tp) end
......
...@@ -68,7 +68,7 @@ function c83519853.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +68,7 @@ function c83519853.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(83519853)~=0 return e:GetHandler():GetFlagEffect(83519853)~=0
end end
function c83519853.thfilter(c) function c83519853.thfilter(c)
return (c:IsSetCard(0x107a) or c:IsSetCard(0x207a)) and c:IsAbleToHand() return c:IsSetCard(0x107a,0x207a) and c:IsAbleToHand()
end end
function c83519853.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c83519853.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c83519853.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c83519853.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -21,7 +21,7 @@ function c84388461.initial_effect(c) ...@@ -21,7 +21,7 @@ function c84388461.initial_effect(c)
e3:SetCost(c84388461.cost) e3:SetCost(c84388461.cost)
end end
function c84388461.splimit(e,c,sump,sumtype,sumpos,targetp) function c84388461.splimit(e,c,sump,sumtype,sumpos,targetp)
if c:IsSetCard(0xb4) or c:IsSetCard(0xc4) then return false end if c:IsSetCard(0xb4,0xc4) then return false end
return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM return bit.band(sumtype,SUMMON_TYPE_PENDULUM)==SUMMON_TYPE_PENDULUM
end end
function c84388461.filter(c) function c84388461.filter(c)
......
...@@ -16,7 +16,7 @@ function c86827882.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c86827882.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 c86827882.filter(c) function c86827882.filter(c)
return c:IsFaceup() and (c:IsSetCard(0x42) or c:IsSetCard(0x4b)) return c:IsFaceup() and c:IsSetCard(0x42,0x4b)
end end
function c86827882.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c86827882.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c86827882.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c86827882.filter(chkc) end
......
...@@ -28,7 +28,7 @@ function c87246309.initial_effect(c) ...@@ -28,7 +28,7 @@ function c87246309.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c87246309.thfilter(c) function c87246309.thfilter(c)
return (c:IsSetCard(0xa9) or c:IsSetCard(0xc3)) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0xa9,0xc3) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c87246309.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c87246309.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c87246309.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c87246309.thfilter(chkc) end
......
...@@ -31,7 +31,7 @@ function c87475570.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,7 +31,7 @@ function c87475570.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function c87475570.filter(c) function c87475570.filter(c)
return (((c:IsSetCard(0x1034) or c:IsSetCard(0x2034)) and c:IsType(TYPE_MONSTER)) return ((c:IsSetCard(0x1034,0x2034) and c:IsType(TYPE_MONSTER))
or (c:IsSetCard(0x34) and c:IsType(TYPE_SPELL+TYPE_TRAP))) and c:IsAbleToHand() or (c:IsSetCard(0x34) and c:IsType(TYPE_SPELL+TYPE_TRAP))) and c:IsAbleToHand()
end end
function c87475570.target(e,tp,eg,ep,ev,re,r,rp,chk) function c87475570.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -17,7 +17,7 @@ function c87765315.filter2(c) ...@@ -17,7 +17,7 @@ function c87765315.filter2(c)
return c:IsFaceup() and c:IsSetCard(0xc7) and not c:IsType(TYPE_PENDULUM) return c:IsFaceup() and c:IsSetCard(0xc7) and not c:IsType(TYPE_PENDULUM)
end end
function c87765315.filter3(c,e,tp) function c87765315.filter3(c,e,tp)
return (c:IsSetCard(0xda) or c:IsSetCard(0xc7)) and c:IsCanBeSpecialSummoned(e,0,tp,true,false) return c:IsSetCard(0xda,0xc7) and c:IsCanBeSpecialSummoned(e,0,tp,true,false)
end end
function c87765315.condition(e,tp,eg,ep,ev,re,r,rp) function c87765315.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c87765315.filter1,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) return Duel.IsExistingMatchingCard(c87765315.filter1,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
......
...@@ -11,7 +11,7 @@ function c88760522.initial_effect(c) ...@@ -11,7 +11,7 @@ function c88760522.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c88760522.filter(c) function c88760522.filter(c)
return c:IsType(TYPE_MONSTER) and (c:IsSetCard(0x304e) or c:IsSetCard(0x604e)) and c:IsAbleToHand() return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x304e,0x604e) and c:IsAbleToHand()
end end
function c88760522.target(e,tp,eg,ep,ev,re,r,rp,chk) function c88760522.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c88760522.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c88760522.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -22,7 +22,7 @@ function c89113320.initial_effect(c) ...@@ -22,7 +22,7 @@ function c89113320.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c89113320.filter(c) function c89113320.filter(c)
return (c:IsSetCard(0x9f) or c:IsSetCard(0x99)) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0x9f,0x99) and c:IsType(TYPE_MONSTER)
end end
function c89113320.lvtg(e,tp,eg,ep,ev,re,r,rp,chk) function c89113320.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c89113320.filter,tp,LOCATION_HAND,0,1,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(c89113320.filter,tp,LOCATION_HAND,0,1,e:GetHandler()) 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.
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