Commit a38482b7 authored by DailyShana's avatar DailyShana

fix

parent 1cc80fdd
...@@ -14,7 +14,7 @@ function c1045143.initial_effect(c) ...@@ -14,7 +14,7 @@ function c1045143.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c1045143.filter(c,e,tp) function c1045143.filter(c,e,tp)
return c:IsSetCard(0x72) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x72) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c1045143.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c1045143.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -39,7 +39,7 @@ function c10833828.initial_effect(c) ...@@ -39,7 +39,7 @@ function c10833828.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c10833828.spfilter1(c,e,tp) function c10833828.spfilter1(c,e,tp)
return c:IsSetCard(0x10af) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x10af) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c10833828.sptg1(e,tp,eg,ep,ev,re,r,rp,chk) function c10833828.sptg1(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
......
...@@ -21,7 +21,7 @@ function c11047543.filter2(c,e,tp,lv) ...@@ -21,7 +21,7 @@ function c11047543.filter2(c,e,tp,lv)
and Duel.IsExistingMatchingCard(c11047543.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,lv+clv) and Duel.IsExistingMatchingCard(c11047543.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,lv+clv)
end end
function c11047543.spfilter(c,e,tp,lv) function c11047543.spfilter(c,e,tp,lv)
return c:IsRace(RACE_PSYCHO) and c:IsType(TYPE_SYNCHRO) and c:GetLevel()==lv and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_PSYCHO) and c:IsType(TYPE_SYNCHRO) and c:GetLevel()==lv and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c11047543.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c11047543.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
......
...@@ -66,11 +66,11 @@ function c12678870.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -66,11 +66,11 @@ function c12678870.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST)
end end
function c12678870.filter1(c,e,tp) function c12678870.filter1(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x10b5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x10b5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
and Duel.IsExistingTarget(c12678870.filter2,tp,LOCATION_REMOVED,0,1,c,e,tp) and Duel.IsExistingTarget(c12678870.filter2,tp,LOCATION_REMOVED,0,1,c,e,tp)
end end
function c12678870.filter2(c,e,tp) function c12678870.filter2(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x20b5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x20b5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c12678870.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c12678870.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
......
...@@ -34,7 +34,7 @@ function c12927849.initial_effect(c) ...@@ -34,7 +34,7 @@ function c12927849.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c12927849.filter(c,e,tp) function c12927849.filter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x7e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x7e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c12927849.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c12927849.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c12927849.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c12927849.filter(chkc,e,tp) end
......
...@@ -14,7 +14,7 @@ end ...@@ -14,7 +14,7 @@ end
function c13386503.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c13386503.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local bc=e:GetHandler():GetBattleTarget() local bc=e:GetHandler():GetBattleTarget()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and bc:IsCanBeSpecialSummoned(e,0,tp,false,false) end and bc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetTargetCard(bc) Duel.SetTargetCard(bc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,bc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,bc,1,0,0)
end end
......
...@@ -11,7 +11,7 @@ function c14517422.initial_effect(c) ...@@ -11,7 +11,7 @@ function c14517422.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c14517422.filter(c,e,tp) function c14517422.filter(c,e,tp)
return c:IsSetCard(0xef) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xef) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c14517422.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c14517422.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -44,7 +44,7 @@ function c14677495.spcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c14677495.spcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetPosition()==POS_FACEUP_ATTACK and e:GetHandler():GetPreviousPosition()>0x3 return e:GetHandler():GetPosition()==POS_FACEUP_ATTACK and e:GetHandler():GetPreviousPosition()>0x3
end end
function c14677495.filter(c,e,tp) function c14677495.filter(c,e,tp)
return c:IsSetCard(0x6042) and c:GetCode()~=14677495 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x6042) and c:GetCode()~=14677495 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c14677495.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c14677495.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
......
...@@ -42,7 +42,7 @@ function c15981690.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,7 +42,7 @@ function c15981690.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c15981690.spfilter(c,e,tp) function c15981690.spfilter(c,e,tp)
return c:IsType(TYPE_NORMAL) and c:IsLevelBelow(7) and c:IsRace(RACE_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_NORMAL) and c:IsLevelBelow(7) and c:IsRace(RACE_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c15981690.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c15981690.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -24,7 +24,7 @@ function c1662004.synlimit(e,c) ...@@ -24,7 +24,7 @@ function c1662004.synlimit(e,c)
return not c:IsRace(RACE_BEASTWARRIOR) return not c:IsRace(RACE_BEASTWARRIOR)
end end
function c1662004.spfilter(c,e,tp) function c1662004.spfilter(c,e,tp)
return c:IsDefenseBelow(200) and c:IsAttribute(ATTRIBUTE_FIRE) and c:GetLevel()==3 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsDefenseBelow(200) and c:IsAttribute(ATTRIBUTE_FIRE) and c:GetLevel()==3 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c1662004.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c1662004.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c1662004.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c1662004.spfilter(chkc,e,tp) end
......
...@@ -13,7 +13,7 @@ function c168917.initial_effect(c) ...@@ -13,7 +13,7 @@ function c168917.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c168917.filter(c,e,tp) function c168917.filter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x30) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x30) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c168917.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c168917.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c168917.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c168917.filter(chkc,e,tp) end
......
...@@ -11,7 +11,7 @@ function c16906241.initial_effect(c) ...@@ -11,7 +11,7 @@ function c16906241.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c16906241.filter(c,e,tp) function c16906241.filter(c,e,tp)
return c:IsSetCard(0x53) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x53) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c16906241.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c16906241.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -19,7 +19,7 @@ end ...@@ -19,7 +19,7 @@ end
function c16909657.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c16909657.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=e:GetHandler():GetBattleTarget() local tc=e:GetHandler():GetBattleTarget()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and tc:IsLocation(LOCATION_GRAVE) and tc:IsCanBeSpecialSummoned(e,0,tp,false,false) end and tc:IsLocation(LOCATION_GRAVE) and tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
tc:CreateEffectRelation(e) tc:CreateEffectRelation(e)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,tc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,tc,1,0,0)
end end
......
...@@ -57,7 +57,7 @@ function c18239909.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function c18239909.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c18239909.spfilter(c,e,tp) function c18239909.spfilter(c,e,tp)
return c:IsSetCard(0xc7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xc7) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c18239909.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c18239909.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -67,7 +67,7 @@ function c18865703.eqlimit(e,c) ...@@ -67,7 +67,7 @@ function c18865703.eqlimit(e,c)
return c==e:GetLabelObject() return c==e:GetLabelObject()
end end
function c18865703.spfilter(c,e,tp) function c18865703.spfilter(c,e,tp)
return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c18865703.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c18865703.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c18865703.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c18865703.spfilter(chkc,e,tp) end
......
...@@ -135,7 +135,7 @@ function c19048328.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -135,7 +135,7 @@ function c19048328.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c19048328.spfilter(c,e,tp,att) function c19048328.spfilter(c,e,tp,att)
return c:IsRace(RACE_WYRM) and bit.band(att,c:GetOriginalAttribute())~=0 return c:IsRace(RACE_WYRM) and bit.band(att,c:GetOriginalAttribute())~=0
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c19048328.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c19048328.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -33,7 +33,7 @@ function c19667590.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,7 +33,7 @@ function c19667590.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c19667590.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c19667590.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c19667590.spop(e,tp,eg,ep,ev,re,r,rp) function c19667590.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -13,7 +13,7 @@ function c20036055.initial_effect(c) ...@@ -13,7 +13,7 @@ function c20036055.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c20036055.filter(c,e,tp,id) function c20036055.filter(c,e,tp,id)
return c:IsSetCard(0xb1) and c:GetTurnID()==id and not c:IsReason(REASON_RETURN) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xb1) and c:GetTurnID()==id and not c:IsReason(REASON_RETURN) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c20036055.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c20036055.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c20036055.filter(chkc,e,tp,Duel.GetTurnCount()) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c20036055.filter(chkc,e,tp,Duel.GetTurnCount()) end
......
...@@ -61,7 +61,7 @@ function c20056760.spcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,7 +61,7 @@ function c20056760.spcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
end end
function c20056760.spfilter(c,e,tp) function c20056760.spfilter(c,e,tp)
return c:IsSetCard(0xd1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xd1) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c20056760.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c20056760.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c20056760.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c20056760.spfilter(chkc,e,tp) end
......
...@@ -36,7 +36,7 @@ function c21142671.spdcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c21142671.spdcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c21142671.filter(c,e,tp) function c21142671.filter(c,e,tp)
return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsRace(RACE_FIEND) return c:IsAttribute(ATTRIBUTE_FIRE) and c:IsRace(RACE_FIEND)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c21142671.spdtg(e,tp,eg,ep,ev,re,r,rp,chk) function c21142671.spdtg(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
......
...@@ -59,7 +59,7 @@ function c21607304.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,7 @@ function c21607304.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c21607304.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c21607304.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c21607304.spop(e,tp,eg,ep,ev,re,r,rp) function c21607304.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -61,12 +61,12 @@ function c22227683.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,12 +61,12 @@ function c22227683.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c22227683.spfilter1(c,e,tp) function c22227683.spfilter1(c,e,tp)
return c:IsSetCard(0xab) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0xab) and c:IsType(TYPE_MONSTER)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
and Duel.IsExistingMatchingCard(c22227683.spfilter2,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,c,e,tp,c:GetLevel()) and Duel.IsExistingMatchingCard(c22227683.spfilter2,tp,LOCATION_GRAVE+LOCATION_HAND,0,1,c,e,tp,c:GetLevel())
end end
function c22227683.spfilter2(c,e,tp,lv) function c22227683.spfilter2(c,e,tp,lv)
return c:IsSetCard(0xab) and c:IsType(TYPE_MONSTER) and c:GetLevel()~=lv return c:IsSetCard(0xab) and c:IsType(TYPE_MONSTER) and c:GetLevel()~=lv
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c22227683.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c22227683.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133) if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)
......
...@@ -19,7 +19,7 @@ function c2273734.initial_effect(c) ...@@ -19,7 +19,7 @@ function c2273734.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c2273734.filter(c,e,tp) function c2273734.filter(c,e,tp)
return c:IsSetCard(0x9c) and not c:IsCode(2273734) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x9c) and not c:IsCode(2273734) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c2273734.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c2273734.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c2273734.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c2273734.filter(chkc,e,tp) end
......
...@@ -19,7 +19,7 @@ function c22835145.initial_effect(c) ...@@ -19,7 +19,7 @@ function c22835145.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c22835145.filter(c,e,tp) function c22835145.filter(c,e,tp)
return c:IsLevelBelow(4) and c:IsSetCard(0x33) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsSetCard(0x33) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c22835145.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22835145.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetControler()==tp and chkc:GetLocation()==LOCATION_GRAVE and c22835145.filter(chkc,e,tp) end if chkc then return chkc:GetControler()==tp and chkc:GetLocation()==LOCATION_GRAVE and c22835145.filter(chkc,e,tp) end
......
...@@ -23,7 +23,7 @@ function c22900598.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,7 +23,7 @@ function c22900598.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c22900598.filter,tp,LOCATION_DECK,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c22900598.filter,tp,LOCATION_DECK,0,1,nil,tp) end
end end
function c22900598.spfilter(c,e,tp) function c22900598.spfilter(c,e,tp)
return c:IsSetCard(0x8e) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x8e) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c22900598.activate(e,tp,eg,ep,ev,re,r,rp) function c22900598.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstMatchingCard(c22900598.filter,tp,LOCATION_DECK,0,nil,tp) local tc=Duel.GetFirstMatchingCard(c22900598.filter,tp,LOCATION_DECK,0,nil,tp)
......
...@@ -44,7 +44,7 @@ end ...@@ -44,7 +44,7 @@ end
function c23979249.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c23979249.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsRelateToEffect(e) if chk==0 then return e:GetHandler():IsRelateToEffect(e)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c23979249.spop(e,tp,eg,ep,ev,re,r,rp) function c23979249.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -14,7 +14,7 @@ function c24062258.initial_effect(c) ...@@ -14,7 +14,7 @@ function c24062258.initial_effect(c)
end end
function c24062258.filter(c,e,tp) function c24062258.filter(c,e,tp)
return c:GetCode()~=24062258 and c:GetLevel()==4 and c:IsAttribute(ATTRIBUTE_DARK) and (c:GetAttack()==0 or c:GetDefense()==0) return c:GetCode()~=24062258 and c:GetLevel()==4 and c:IsAttribute(ATTRIBUTE_DARK) and (c:GetAttack()==0 or c:GetDefense()==0)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c24062258.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c24062258.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c24062258.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c24062258.filter(chkc,e,tp) end
......
...@@ -15,7 +15,7 @@ function c24103628.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,7 +15,7 @@ function c24103628.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE) return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end end
function c24103628.filter(c,e,tp) function c24103628.filter(c,e,tp)
return c:IsAttackBelow(1000) and c:IsSetCard(0x8) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsAttackBelow(1000) and c:IsSetCard(0x8) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c24103628.target(e,tp,eg,ep,ev,re,r,rp,chk) function c24103628.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
......
...@@ -28,7 +28,7 @@ function c24658418.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,7 @@ function c24658418.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c24658418.target(e,tp,eg,ep,ev,re,r,rp,chk) function c24658418.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
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c24658418.operation(e,tp,eg,ep,ev,re,r,rp) function c24658418.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -65,7 +65,7 @@ function c24861088.aclimit(e,re,tp) ...@@ -65,7 +65,7 @@ function c24861088.aclimit(e,re,tp)
end end
function c24861088.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c24861088.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c24861088.spop(e,tp,eg,ep,ev,re,r,rp) function c24861088.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -19,7 +19,7 @@ function c25472513.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -19,7 +19,7 @@ function c25472513.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO return e:GetHandler():GetSummonType()==SUMMON_TYPE_SYNCHRO
end end
function c25472513.spfilter(c,e,tp) function c25472513.spfilter(c,e,tp)
return c:GetLevel()==2 and not c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetLevel()==2 and not c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c25472513.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c25472513.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -40,7 +40,7 @@ function c26964762.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -40,7 +40,7 @@ function c26964762.spcost(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 c26964762.spfilter(c,e,tp) function c26964762.spfilter(c,e,tp)
return c:IsSetCard(0xc008) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xc008) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE,1-tp)
end end
function c26964762.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c26964762.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c26964762.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c26964762.spfilter(chkc,e,tp) end
......
...@@ -30,7 +30,7 @@ function c27103517.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,7 +30,7 @@ function c27103517.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c27103517.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c27103517.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c27103517.spop(e,tp,eg,ep,ev,re,r,rp) function c27103517.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -13,7 +13,7 @@ function c27944249.initial_effect(c) ...@@ -13,7 +13,7 @@ function c27944249.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c27944249.filter(c,e,tp) function c27944249.filter(c,e,tp)
return c:IsLevelBelow(3) and c:IsSetCard(0x10) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(3) and c:IsSetCard(0x10) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c27944249.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c27944249.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c27944249.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c27944249.filter(chkc,e,tp) end
......
...@@ -21,7 +21,7 @@ function c282886.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,7 +21,7 @@ function c282886.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,c282886.cfilter,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,c282886.cfilter,1,1,REASON_COST+REASON_DISCARD)
end end
function c282886.filter(c,e,tp) function c282886.filter(c,e,tp)
return c:IsSetCard(0x74) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x74) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c282886.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c282886.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -52,7 +52,7 @@ function c286392.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -52,7 +52,7 @@ function c286392.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c286392.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c286392.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c286392.spop(e,tp,eg,ep,ev,re,r,rp) function c286392.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -20,7 +20,7 @@ function c30068120.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -20,7 +20,7 @@ function c30068120.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c30068120.target(e,tp,eg,ep,ev,re,r,rp,chk) function c30068120.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
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c30068120.operation(e,tp,eg,ep,ev,re,r,rp) function c30068120.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -38,7 +38,7 @@ function c30106950.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c30106950.condition(e,tp,eg,ep,ev,re,r,rp)
and c:IsPreviousLocation(LOCATION_ONFIELD) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_ONFIELD) and c:GetPreviousControler()==tp
end end
function c30106950.filter(c,e,tp) function c30106950.filter(c,e,tp)
return c:IsSetCard(0x9e) and not c:IsCode(30106950) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x9e) and not c:IsCode(30106950) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c30106950.target(e,tp,eg,ep,ev,re,r,rp,chk) function c30106950.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
......
...@@ -23,7 +23,7 @@ function c30587695.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,7 +23,7 @@ function c30587695.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c30587695.filter(c,e,tp) function c30587695.filter(c,e,tp)
return c:IsLevelBelow(4) and c:IsRace(RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsRace(RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c30587695.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c30587695.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c30587695.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c30587695.filter(chkc,e,tp) end
......
...@@ -35,7 +35,7 @@ function c32465539.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function c32465539.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPosition(POS_FACEUP_ATTACK) return e:GetHandler():IsPosition(POS_FACEUP_ATTACK)
end end
function c32465539.spfil(c,e,tp) function c32465539.spfil(c,e,tp)
return c:GetLevel()==3 and c:IsRace(RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetLevel()==3 and c:IsRace(RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c32465539.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c32465539.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c32465539.spfil(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c32465539.spfil(chkc,e,tp) end
......
...@@ -11,7 +11,7 @@ function c33057951.initial_effect(c) ...@@ -11,7 +11,7 @@ function c33057951.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c33057951.filter(c,e,tp) function c33057951.filter(c,e,tp)
return c:IsLevelBelow(3) and c:IsRace(0x60040) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(3) and c:IsRace(0x60040) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c33057951.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c33057951.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c33057951.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c33057951.filter(chkc,e,tp) end
......
...@@ -33,7 +33,7 @@ function c3422200.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,7 +33,7 @@ function c3422200.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c3422200.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c3422200.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,0) local g=Duel.GetFieldGroup(tp,LOCATION_ONFIELD,0)
if g:GetCount()>0 then if g:GetCount()>0 then
...@@ -56,7 +56,7 @@ function c3422200.spcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function c3422200.spcon2(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function c3422200.spfilter(c,e,tp) function c3422200.spfilter(c,e,tp)
return c:IsSetCard(0xea) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xea) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c3422200.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c3422200.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
......
...@@ -12,7 +12,7 @@ function c34707034.initial_effect(c) ...@@ -12,7 +12,7 @@ function c34707034.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c34707034.filter(c,e,tp) function c34707034.filter(c,e,tp)
return c:IsSetCard(0x74) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x74) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c34707034.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c34707034.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c34707034.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c34707034.filter(chkc,e,tp) end
......
...@@ -13,7 +13,7 @@ function c3534077.initial_effect(c) ...@@ -13,7 +13,7 @@ function c3534077.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c3534077.filter(c,e,tp) function c3534077.filter(c,e,tp)
return c:IsRace(RACE_BEASTWARRIOR) and c:IsAttribute(ATTRIBUTE_FIRE) and c:GetLevel()==4 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_BEASTWARRIOR) and c:IsAttribute(ATTRIBUTE_FIRE) and c:GetLevel()==4 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c3534077.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c3534077.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c3534077.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c3534077.filter(chkc,e,tp) end
......
...@@ -33,7 +33,7 @@ function c35950025.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c35950025.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_NORMAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_NORMAL+1
end end
function c35950025.spfilter(c,e,tp) function c35950025.spfilter(c,e,tp)
return c:IsCode(93717133) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(93717133) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c35950025.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c35950025.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c35950025.spfilter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c35950025.spfilter(chkc,e,tp) end
......
...@@ -12,7 +12,7 @@ function c36227804.initial_effect(c) ...@@ -12,7 +12,7 @@ function c36227804.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c36227804.filter(c,e,tp) function c36227804.filter(c,e,tp)
return c:IsLevelBelow(4) and c:IsSetCard(0x3a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsSetCard(0x3a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c36227804.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c36227804.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c36227804.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c36227804.filter(chkc,e,tp) end
......
...@@ -56,11 +56,11 @@ function c36857073.spcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,11 +56,11 @@ function c36857073.spcon2(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp return ep~=tp
end end
function c36857073.spfilter2(c,e,tp) function c36857073.spfilter2(c,e,tp)
return c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
and Duel.IsExistingMatchingCard(c36857073.spfilter3,tp,LOCATION_GRAVE,0,1,nil,e,tp,c:GetLevel()) and Duel.IsExistingMatchingCard(c36857073.spfilter3,tp,LOCATION_GRAVE,0,1,nil,e,tp,c:GetLevel())
end end
function c36857073.spfilter3(c,e,tp,lv) function c36857073.spfilter3(c,e,tp,lv)
return c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
and c:GetLevel()==lv and c:GetLevel()==lv
end end
function c36857073.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c36857073.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -17,7 +17,7 @@ function c36916401.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -17,7 +17,7 @@ function c36916401.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardDeck(tp,1,REASON_COST) Duel.DiscardDeck(tp,1,REASON_COST)
end end
function c36916401.filter(c,e,tp) function c36916401.filter(c,e,tp)
return c:IsSetCard(0x84) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x84) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c36916401.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c36916401.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c36916401.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c36916401.filter(chkc,e,tp) end
......
...@@ -33,7 +33,7 @@ function c39122311.initial_effect(c) ...@@ -33,7 +33,7 @@ function c39122311.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c39122311.filter(c,e,tp) function c39122311.filter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c39122311.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c39122311.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c39122311.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c39122311.filter(chkc,e,tp) end
......
...@@ -21,7 +21,7 @@ function c39695323.initial_effect(c) ...@@ -21,7 +21,7 @@ function c39695323.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c39695323.filter(c,e,tp) function c39695323.filter(c,e,tp)
return c:IsSetCard(0x59) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x59) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c39695323.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c39695323.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c39695323.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c39695323.filter(chkc,e,tp) end
......
...@@ -11,7 +11,7 @@ function c40143123.initial_effect(c) ...@@ -11,7 +11,7 @@ function c40143123.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c40143123.filter(c,e,tp) function c40143123.filter(c,e,tp)
return c:IsSetCard(0x53) and c:GetLevel()==5 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x53) and c:GetLevel()==5 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c40143123.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c40143123.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -41,7 +41,7 @@ function c41493640.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function c41493640.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c41493640.spfilter(c,e,tp) function c41493640.spfilter(c,e,tp)
return c:GetLevel()==3 and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetLevel()==3 and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c41493640.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c41493640.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -44,7 +44,7 @@ function c41546.desfilter(c) ...@@ -44,7 +44,7 @@ function c41546.desfilter(c)
return (c:GetSequence()==6 or c:GetSequence()==7) and c:IsSetCard(0xaf) return (c:GetSequence()==6 or c:GetSequence()==7) and c:IsSetCard(0xaf)
end end
function c41546.spfilter(c,e,tp) function c41546.spfilter(c,e,tp)
return c:IsSetCard(0x10af) and c:GetLevel()==8 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x10af) and c:GetLevel()==8 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c41546.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c41546.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c41546.desfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c41546.desfilter(chkc) end
......
...@@ -11,7 +11,7 @@ function c42079445.initial_effect(c) ...@@ -11,7 +11,7 @@ function c42079445.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c42079445.spfilter(c,e,tp) function c42079445.spfilter(c,e,tp)
return c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_SYNCHRO) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c42079445.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c42079445.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c42079445.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c42079445.spfilter(chkc,e,tp) end
......
...@@ -11,7 +11,7 @@ function c42534368.initial_effect(c) ...@@ -11,7 +11,7 @@ function c42534368.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c42534368.filter(c,e,tp) function c42534368.filter(c,e,tp)
return c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c42534368.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c42534368.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c42534368.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c42534368.filter(chkc,e,tp) end
......
...@@ -53,7 +53,7 @@ function c42713844.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function c42713844.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c42713844.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c42713844.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c42713844.spop(e,tp,eg,ep,ev,re,r,rp) function c42713844.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -34,7 +34,7 @@ function c43138260.spcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,7 +34,7 @@ function c43138260.spcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
end end
function c43138260.spfilter(c,e,tp) function c43138260.spfilter(c,e,tp)
return c:IsRace(RACE_FISH) and c:GetLevel()==4 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_FISH) and c:GetLevel()==4 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c43138260.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c43138260.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c43138260.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c43138260.spfilter(chkc,e,tp) end
......
...@@ -62,7 +62,7 @@ function c43202238.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,7 +62,7 @@ function c43202238.spcon(e,tp,eg,ep,ev,re,r,rp)
and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousLocation(LOCATION_ONFIELD)
end end
function c43202238.spfilter(c,e,tp) function c43202238.spfilter(c,e,tp)
return c:IsRace(RACE_WYRM) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_WYRM) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c43202238.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c43202238.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -21,7 +21,7 @@ function c4423206.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,7 +21,7 @@ function c4423206.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c4423206.spfilter(c,e,tp) function c4423206.spfilter(c,e,tp)
return c:IsRace(RACE_WARRIOR+RACE_BEASTWARRIOR) and c:IsAttribute(ATTRIBUTE_EARTH) return c:IsRace(RACE_WARRIOR+RACE_BEASTWARRIOR) and c:IsAttribute(ATTRIBUTE_EARTH)
and c:GetLevel()==4 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:GetLevel()==4 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c4423206.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c4423206.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -51,7 +51,7 @@ function c44335251.desfilter(c) ...@@ -51,7 +51,7 @@ function c44335251.desfilter(c)
return c:IsFaceup() and c:IsLevelBelow(4) and c:IsRace(RACE_DINOSAUR) return c:IsFaceup() and c:IsLevelBelow(4) and c:IsRace(RACE_DINOSAUR)
end end
function c44335251.spfilter(c,e,tp) function c44335251.spfilter(c,e,tp)
return c:IsRace(RACE_DINOSAUR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_DINOSAUR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c44335251.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c44335251.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -15,7 +15,7 @@ function c44509898.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,7 +15,7 @@ function c44509898.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp
end end
function c44509898.filter(c,e,tp) function c44509898.filter(c,e,tp)
return c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c44509898.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c44509898.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c44509898.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c44509898.filter(chkc,e,tp) end
......
...@@ -35,7 +35,7 @@ function c45286019.splimit(e,c,sump,sumtype,sumpos,targetp,se) ...@@ -35,7 +35,7 @@ function c45286019.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0x72) return not c:IsSetCard(0x72)
end end
function c45286019.filter(c,e,tp) function c45286019.filter(c,e,tp)
return c:IsSetCard(0x72) and not c:IsCode(45286019) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x72) and not c:IsCode(45286019) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c45286019.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c45286019.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -119,7 +119,7 @@ function c4545683.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -119,7 +119,7 @@ function c4545683.eqop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c4545683.spfilter(c,e,tp,ec) function c4545683.spfilter(c,e,tp,ec)
return c:GetFlagEffect(4545683)~=0 and c:GetEquipTarget()==ec and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetFlagEffect(4545683)~=0 and c:GetEquipTarget()==ec and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c4545683.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c4545683.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c4545683.spfilter(chkc,e,tp,e:GetHandler()) end if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c4545683.spfilter(chkc,e,tp,e:GetHandler()) end
......
...@@ -34,7 +34,7 @@ function c45803070.efilter(e,te) ...@@ -34,7 +34,7 @@ function c45803070.efilter(e,te)
return c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) return c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(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) return c:IsSetCard(0x108a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c45803070.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c45803070.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c45803070.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c45803070.filter(chkc,e,tp) end
......
...@@ -30,7 +30,7 @@ function c46659709.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,7 +30,7 @@ function c46659709.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c46659709.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c46659709.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c46659709.spop(e,tp,eg,ep,ev,re,r,rp) function c46659709.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -12,7 +12,7 @@ function c47457347.initial_effect(c) ...@@ -12,7 +12,7 @@ function c47457347.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c47457347.filter(c,e,tp) function c47457347.filter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0xf4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0xf4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c47457347.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c47457347.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c47457347.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c47457347.filter(chkc,e,tp) end
......
...@@ -98,11 +98,11 @@ function c48063985.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -98,11 +98,11 @@ function c48063985.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST)
end end
function c48063985.filter1(c,e,tp) function c48063985.filter1(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x10b5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x10b5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
and Duel.IsExistingTarget(c48063985.filter2,tp,LOCATION_REMOVED,0,1,c,e,tp) and Duel.IsExistingTarget(c48063985.filter2,tp,LOCATION_REMOVED,0,1,c,e,tp)
end end
function c48063985.filter2(c,e,tp) function c48063985.filter2(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x20b5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x20b5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c48063985.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c48063985.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
......
...@@ -42,7 +42,7 @@ function c48497555.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c48497555.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c48497555.spfilter(c,e,tp) function c48497555.spfilter(c,e,tp)
return c:IsSetCard(0x43) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x43) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c48497555.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c48497555.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c48497555.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c48497555.spfilter(chkc,e,tp) end
......
...@@ -36,7 +36,7 @@ function c50692511.filter1(c,e,tp) ...@@ -36,7 +36,7 @@ function c50692511.filter1(c,e,tp)
and Duel.IsExistingMatchingCard(c50692511.filter2,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp,c:GetCode()) and Duel.IsExistingMatchingCard(c50692511.filter2,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp,c:GetCode())
end end
function c50692511.filter2(c,e,tp,code) function c50692511.filter2(c,e,tp,code)
return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c50692511.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c50692511.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsCode(e:GetLabel()) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsCode(e:GetLabel()) end
......
...@@ -40,7 +40,7 @@ function c51543904.xyzop(e,tp,chk) ...@@ -40,7 +40,7 @@ function c51543904.xyzop(e,tp,chk)
Duel.DiscardHand(tp,c51543904.cfilter,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,c51543904.cfilter,1,1,REASON_COST+REASON_DISCARD)
end end
function c51543904.filter(c,e,tp) function c51543904.filter(c,e,tp)
return c:IsSetCard(0x48) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x48) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c51543904.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c51543904.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c51543904.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c51543904.filter(chkc,e,tp) end
......
...@@ -12,7 +12,7 @@ function c52346240.initial_effect(c) ...@@ -12,7 +12,7 @@ function c52346240.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c52346240.filter(c,e,tp) function c52346240.filter(c,e,tp)
return c:GetLevel()==1 and c:IsRace(RACE_BEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetLevel()==1 and c:IsRace(RACE_BEAST) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c52346240.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c52346240.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c52346240.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c52346240.filter(chkc,e,tp) end
......
...@@ -35,7 +35,7 @@ end ...@@ -35,7 +35,7 @@ end
function c53485634.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c53485634.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanSpecialSummonCount(tp,2) if chk==0 then return Duel.IsPlayerCanSpecialSummonCount(tp,2)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
and eg:IsExists(c53485634.spfilter,1,nil,e,tp) end and eg:IsExists(c53485634.spfilter,1,nil,e,tp) end
local g=eg:Filter(c53485634.spfilter,nil,e,tp) local g=eg:Filter(c53485634.spfilter,nil,e,tp)
Duel.SetTargetCard(g) Duel.SetTargetCard(g)
......
...@@ -47,7 +47,7 @@ function c53573406.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) ...@@ -47,7 +47,7 @@ function c53573406.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return e:GetLabel()~=se:GetLabel() and not c:IsLocation(LOCATION_EXTRA) return e:GetLabel()~=se:GetLabel() and not c:IsLocation(LOCATION_EXTRA)
end end
function c53573406.filter(c,e,tp) function c53573406.filter(c,e,tp)
return c:GetDefense()==0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetDefense()==0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c53573406.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c53573406.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetControler()==tp and chkc:GetLocation()==LOCATION_GRAVE and c53573406.filter(chkc,e,tp) end if chkc then return chkc:GetControler()==tp and chkc:GetLocation()==LOCATION_GRAVE and c53573406.filter(chkc,e,tp) end
......
...@@ -20,7 +20,7 @@ function c55100740.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -20,7 +20,7 @@ function c55100740.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end end
function c55100740.filter(c,e,tp) function c55100740.filter(c,e,tp)
return c:IsType(TYPE_DUAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_DUAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c55100740.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c55100740.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c55100740.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c55100740.filter(chkc,e,tp) end
......
...@@ -48,7 +48,7 @@ function c55470553.spfilter(c,tp) ...@@ -48,7 +48,7 @@ function c55470553.spfilter(c,tp)
end end
function c55470553.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c55470553.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c55470553.spfilter(chkc,tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c55470553.spfilter(chkc,tp) end
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c55470553.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,tp) end and Duel.IsExistingTarget(c55470553.spfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
......
...@@ -13,7 +13,7 @@ function c56105047.initial_effect(c) ...@@ -13,7 +13,7 @@ function c56105047.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c56105047.filter(c,e,tp) function c56105047.filter(c,e,tp)
return c:IsCode(62476815) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(62476815) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c56105047.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c56105047.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c56105047.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c56105047.filter(chkc,e,tp) end
......
...@@ -11,7 +11,7 @@ function c56681873.initial_effect(c) ...@@ -11,7 +11,7 @@ function c56681873.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c56681873.filter(c,e,tp) function c56681873.filter(c,e,tp)
return c:IsLevelBelow(4) and c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c56681873.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c56681873.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -12,11 +12,11 @@ function c57815601.initial_effect(c) ...@@ -12,11 +12,11 @@ function c57815601.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c57815601.filter1(c,e,tp) function c57815601.filter1(c,e,tp)
return c:IsSetCard(0x10b5) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x10b5) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
and Duel.IsExistingTarget(c57815601.filter2,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,c,e,tp) and Duel.IsExistingTarget(c57815601.filter2,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,c,e,tp)
end end
function c57815601.filter2(c,e,tp) function c57815601.filter2(c,e,tp)
return c:IsSetCard(0x20b5) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x20b5) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c57815601.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c57815601.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
......
...@@ -17,7 +17,7 @@ function c57962537.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c57962537.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPosition(POS_FACEUP_ATTACK) return e:GetHandler():IsPosition(POS_FACEUP_ATTACK)
end end
function c57962537.filter(c,e,tp) function c57962537.filter(c,e,tp)
return c:IsSetCard(0x58) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x58) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c57962537.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c57962537.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c57962537.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c57962537.filter(chkc,e,tp) end
......
...@@ -41,7 +41,7 @@ function c57996334.sumcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function c57996334.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
end end
function c57996334.filter(c,e,tp) function c57996334.filter(c,e,tp)
return c:IsSetCard(0x82) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x82) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c57996334.sumtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c57996334.sumtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c57996334.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c57996334.filter(chkc,e,tp) end
......
...@@ -19,7 +19,7 @@ function c58787301.cfilter(c,e,tp) ...@@ -19,7 +19,7 @@ function c58787301.cfilter(c,e,tp)
and Duel.IsExistingMatchingCard(c58787301.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,c:GetLevel()) and Duel.IsExistingMatchingCard(c58787301.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,c:GetLevel())
end end
function c58787301.spfilter(c,e,tp,lv) function c58787301.spfilter(c,e,tp,lv)
return c:IsSetCard(0xef) and c:GetLevel()==lv and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xef) and c:GetLevel()==lv and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c58787301.target(e,tp,eg,ep,ev,re,r,rp,chk) function c58787301.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
......
...@@ -30,7 +30,7 @@ function c58947797.initial_effect(c) ...@@ -30,7 +30,7 @@ function c58947797.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c58947797.filter(c,e,tp) function c58947797.filter(c,e,tp)
return c:IsSetCard(0x8e) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x8e) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c58947797.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c58947797.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c58947797.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c58947797.filter(chkc,e,tp) end
......
...@@ -50,7 +50,7 @@ function c59057152.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c59057152.spcon(e,tp,eg,ep,ev,re,r,rp)
return c59057152.eqcon2(e) and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==1 return c59057152.eqcon2(e) and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==1
end end
function c59057152.spfilter(c,e,tp) function c59057152.spfilter(c,e,tp)
return c:IsSetCard(0x107a) and c:GetCode()~=59057152 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x107a) and c:GetCode()~=59057152 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c59057152.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c59057152.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -19,7 +19,7 @@ function c59297550.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -19,7 +19,7 @@ function c59297550.spcon(e,tp,eg,ep,ev,re,r,rp)
and re:GetHandler():IsSetCard(0x58) and re:GetHandler():GetCode()~=59297550 and re:GetHandler():IsSetCard(0x58) and re:GetHandler():GetCode()~=59297550
end end
function c59297550.filter(c,e,tp) function c59297550.filter(c,e,tp)
return c:IsSetCard(0x58) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x58) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c59297550.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c59297550.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -42,7 +42,7 @@ function c59463312.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,7 +42,7 @@ function c59463312.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c59463312.filter(c,e,tp) function c59463312.filter(c,e,tp)
return c:GetAttack()==800 and c:GetDefense()==1000 and not c:IsCode(59463312) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetAttack()==800 and c:GetDefense()==1000 and not c:IsCode(59463312) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c59463312.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c59463312.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c59463312.filter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c59463312.filter(chkc,e,tp) end
......
...@@ -20,7 +20,7 @@ function c5972394.filter(c,e,tp) ...@@ -20,7 +20,7 @@ function c5972394.filter(c,e,tp)
and Duel.IsExistingMatchingCard(c5972394.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode()) and Duel.IsExistingMatchingCard(c5972394.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode())
end end
function c5972394.spfilter(c,e,tp,code) function c5972394.spfilter(c,e,tp,code)
return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c5972394.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c5972394.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c5972394.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c5972394.filter(chkc,e,tp) end
......
...@@ -57,7 +57,7 @@ function c59822133.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -57,7 +57,7 @@ function c59822133.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c59822133.spfilter(c,e,tp) function c59822133.spfilter(c,e,tp)
return c:IsRace(RACE_DRAGON) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsType(TYPE_SYNCHRO) return c:IsRace(RACE_DRAGON) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsType(TYPE_SYNCHRO)
and not c:IsCode(59822133) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsCode(59822133) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c59822133.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c59822133.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
......
...@@ -18,7 +18,7 @@ function c60222582.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,7 +18,7 @@ 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) return c:IsLevelAbove(5) and (c:IsSetCard(0x55) or c:IsSetCard(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
......
...@@ -34,7 +34,7 @@ function c60228941.filter1(c) ...@@ -34,7 +34,7 @@ function c60228941.filter1(c)
return c:IsSetCard(0x6) and c:IsAbleToHand() return c:IsSetCard(0x6) and c:IsAbleToHand()
end end
function c60228941.filter2(c,e,tp) function c60228941.filter2(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c60228941.operation(e,tp,eg,ep,ev,re,r,rp) function c60228941.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
...@@ -56,7 +56,7 @@ function c60621361.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function c60621361.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(1-tp,60621361)~=0 return Duel.GetFlagEffect(1-tp,60621361)~=0
end end
function c60621361.filter(c,e,tp) function c60621361.filter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c60621361.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c60621361.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 c60621361.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(1-tp) and c60621361.filter(chkc,e,tp) end
......
...@@ -38,7 +38,7 @@ function c60930169.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c60930169.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c60930169.filter,1,nil,e,tp) return eg:IsExists(c60930169.filter,1,nil,e,tp)
end end
function c60930169.spfilter(c,e,tp,code) function c60930169.spfilter(c,e,tp,code)
return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(code) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c60930169.target(e,tp,eg,ep,ev,re,r,rp,chk) function c60930169.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
......
...@@ -11,7 +11,7 @@ function c61011311.initial_effect(c) ...@@ -11,7 +11,7 @@ function c61011311.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c61011311.filter(c,e,tp) function c61011311.filter(c,e,tp)
return c:IsSetCard(0x58) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x58) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c61011311.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c61011311.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c61011311.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c61011311.filter(chkc,e,tp) end
......
...@@ -38,7 +38,7 @@ function c6276588.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c6276588.spcon(e,tp,eg,ep,ev,re,r,rp)
and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE) and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE)
end end
function c6276588.filter(c,e,tp) function c6276588.filter(c,e,tp)
return c:IsLevelBelow(4) and c:IsSetCard(0x11) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsSetCard(0x11) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c6276588.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c6276588.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c6276588.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c6276588.filter(chkc,e,tp) end
......
...@@ -12,7 +12,7 @@ function c63977008.initial_effect(c) ...@@ -12,7 +12,7 @@ function c63977008.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c63977008.filter(c,e,tp) function c63977008.filter(c,e,tp)
return c:IsLevelBelow(2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c63977008.sumtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c63977008.sumtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c63977008.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c63977008.filter(chkc,e,tp) end
......
...@@ -23,7 +23,7 @@ function c64038662.filter1(c) ...@@ -23,7 +23,7 @@ function c64038662.filter1(c)
return c:IsFaceup() and c:IsSetCard(0x56) return c:IsFaceup() and c:IsSetCard(0x56)
end end
function c64038662.filter2(c,e,tp) function c64038662.filter2(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x56) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x56) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c64038662.select(e,tp,b1,b2) function c64038662.select(e,tp,b1,b2)
local op=0 local op=0
......
...@@ -47,7 +47,7 @@ function c64245689.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function c64245689.tgop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c64245689.spfilter(c,e,tp) function c64245689.spfilter(c,e,tp)
return c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c64245689.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c64245689.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c64245689.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c64245689.spfilter(chkc,e,tp) end
......
...@@ -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) return (c:IsSetCard(0x54) or c:IsSetCard(0x82) or c:IsSetCard(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()
......
...@@ -33,7 +33,7 @@ end ...@@ -33,7 +33,7 @@ end
function c64319467.filter(c,e,tp) function c64319467.filter(c,e,tp)
local lv=c:GetLevel() local lv=c:GetLevel()
return (lv==3 or lv==4) and c:IsRace(RACE_FISH) and c:IsAttribute(ATTRIBUTE_WATER) return (lv==3 or lv==4) and c:IsRace(RACE_FISH) and c:IsAttribute(ATTRIBUTE_WATER)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c64319467.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c64319467.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c64319467.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c64319467.filter(chkc,e,tp) end
......
...@@ -24,7 +24,7 @@ function c645087.initial_effect(c) ...@@ -24,7 +24,7 @@ function c645087.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c645087.spfilter(c,e,tp) function c645087.spfilter(c,e,tp)
return c:IsLevelBelow(2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c645087.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c645087.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c645087.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c645087.spfilter(chkc,e,tp) end
......
...@@ -18,7 +18,7 @@ function c64514622.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -18,7 +18,7 @@ function c64514622.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 c64514622.filter(c,e,tp) function c64514622.filter(c,e,tp)
return c:IsSetCard(0x69) and not c:IsCode(64514622) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x69) and not c:IsCode(64514622) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c64514622.target(e,tp,eg,ep,ev,re,r,rp,chk) function c64514622.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
......
...@@ -13,7 +13,7 @@ function c6459419.dfilter(c) ...@@ -13,7 +13,7 @@ function c6459419.dfilter(c)
return c:IsFaceup() and c:IsSetCard(0x4) return c:IsFaceup() and c:IsSetCard(0x4)
end end
function c6459419.spfilter(c,e,tp) function c6459419.spfilter(c,e,tp)
return c:IsLevelBelow(4) and c:IsSetCard(0x4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsSetCard(0x4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c6459419.target(e,tp,eg,ep,ev,re,r,rp,chk) function c6459419.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c6459419.dfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c6459419.dfilter,tp,LOCATION_MZONE,0,1,nil) end
......
...@@ -11,7 +11,7 @@ function c65659181.initial_effect(c) ...@@ -11,7 +11,7 @@ function c65659181.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c65659181.filter(c,e,tp) function c65659181.filter(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x30) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x30) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c65659181.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c65659181.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c65659181.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_SZONE) and chkc:IsControler(tp) and c65659181.filter(chkc,e,tp) end
...@@ -24,7 +24,7 @@ function c65659181.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -24,7 +24,7 @@ function c65659181.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,g:GetCount(),0,0)
end end
function c65659181.spfilter(c,e,tp) function c65659181.spfilter(c,e,tp)
return c:IsRelateToEffect(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRelateToEffect(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c65659181.spop(e,tp,eg,ep,ev,re,r,rp) function c65659181.spop(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
......
...@@ -24,7 +24,7 @@ function c65737274.initial_effect(c) ...@@ -24,7 +24,7 @@ function c65737274.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c65737274.spfilter(c,e,tp) function c65737274.spfilter(c,e,tp)
return c:IsAttackBelow(1000) and c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsAttackBelow(1000) and c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c65737274.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c65737274.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c65737274.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c65737274.spfilter(chkc,e,tp) end
......
...@@ -11,7 +11,7 @@ function c65758454.initial_effect(c) ...@@ -11,7 +11,7 @@ function c65758454.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c65758454.filter(c,e,tp) function c65758454.filter(c,e,tp)
return c:IsCode(65758454) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(65758454) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c65758454.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c65758454.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -57,7 +57,7 @@ function c65976795.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function c65976795.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c65976795.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c65976795.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c65976795.spop(e,tp,eg,ep,ev,re,r,rp) function c65976795.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -38,7 +38,7 @@ function c66500065.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c66500065.condition(e,tp,eg,ep,ev,re,r,rp)
and c:IsPreviousLocation(LOCATION_ONFIELD) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_ONFIELD) and c:GetPreviousControler()==tp
end end
function c66500065.filter(c,e,tp) function c66500065.filter(c,e,tp)
return c:IsSetCard(0x9e) and not c:IsCode(66500065) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x9e) and not c:IsCode(66500065) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c66500065.target(e,tp,eg,ep,ev,re,r,rp,chk) function c66500065.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
......
...@@ -74,7 +74,7 @@ function c68371799.spcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,7 +74,7 @@ function c68371799.spcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE return e:GetHandler():GetSummonType()==SUMMON_TYPE_ADVANCE
end end
function c68371799.spfilter(c,e,tp) function c68371799.spfilter(c,e,tp)
return c:GetLevel()==6 and c:IsSetCard(0x45) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetLevel()==6 and c:IsSetCard(0x45) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c68371799.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c68371799.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c68371799.spfilter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c68371799.spfilter(chkc,e,tp) end
......
...@@ -35,7 +35,7 @@ function c68950538.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +35,7 @@ function c68950538.spcon(e,tp,eg,ep,ev,re,r,rp)
return not c:IsStatus(STATUS_CONTINUOUS_POS) and c:IsPosition(POS_FACEUP_DEFENSE) and c:IsPreviousPosition(POS_FACEUP_ATTACK) return not c:IsStatus(STATUS_CONTINUOUS_POS) and c:IsPosition(POS_FACEUP_DEFENSE) and c:IsPreviousPosition(POS_FACEUP_ATTACK)
end end
function c68950538.spfilter(c,e,tp) function c68950538.spfilter(c,e,tp)
return c:GetLevel()==3 and c:IsRace(RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetLevel()==3 and c:IsRace(RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c68950538.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c68950538.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -16,7 +16,7 @@ function c70624184.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -16,7 +16,7 @@ function c70624184.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function c70624184.filter(c,e,tp) function c70624184.filter(c,e,tp)
return c:IsSetCard(0x53) and not c:IsCode(70624184) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x53) and not c:IsCode(70624184) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c70624184.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c70624184.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
......
...@@ -16,7 +16,7 @@ function c71175527.initial_effect(c) ...@@ -16,7 +16,7 @@ function c71175527.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c71175527.filter(c,e,tp) function c71175527.filter(c,e,tp)
return c:IsAttribute(ATTRIBUTE_WIND) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsAttribute(ATTRIBUTE_WIND) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c71175527.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c71175527.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c71175527.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c71175527.filter(chkc,e,tp) end
......
...@@ -57,7 +57,7 @@ function c71985676.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -57,7 +57,7 @@ function c71985676.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c71985676.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c71985676.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c71985676.spop(e,tp,eg,ep,ev,re,r,rp) function c71985676.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -30,7 +30,7 @@ function c73428497.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,7 +30,7 @@ function c73428497.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function c73428497.filter(c,e,tp) function c73428497.filter(c,e,tp)
return c:IsSetCard(0x72) and c:GetCode()~=73428497 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x72) and c:GetCode()~=73428497 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c73428497.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c73428497.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
......
...@@ -17,7 +17,7 @@ end ...@@ -17,7 +17,7 @@ end
function c7391448.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c7391448.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local bc=e:GetHandler():GetBattleTarget() local bc=e:GetHandler():GetBattleTarget()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and bc:IsCanBeSpecialSummoned(e,0,tp,false,false) end and bc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetTargetCard(bc) Duel.SetTargetCard(bc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,bc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,bc,1,0,0)
end end
......
...@@ -88,7 +88,7 @@ function c73941492.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,7 +88,7 @@ function c73941492.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c73941492.spfilter(c,e,tp) function c73941492.spfilter(c,e,tp)
return c:IsSetCard(0x98) and c:IsType(TYPE_PENDULUM) and not c:IsCode(73941492) return c:IsSetCard(0x98) and c:IsType(TYPE_PENDULUM) and not c:IsCode(73941492)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c73941492.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c73941492.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -17,7 +17,7 @@ function c75252099.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c75252099.spcon(e,tp,eg,ep,ev,re,r,rp)
and c:GetPreviousControler()==tp and c:GetBattlePosition()==POS_FACEUP_ATTACK and c:GetPreviousControler()==tp and c:GetBattlePosition()==POS_FACEUP_ATTACK
end end
function c75252099.filter(c,e,tp) function c75252099.filter(c,e,tp)
return c:IsRace(RACE_PLANT) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_PLANT) and c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c75252099.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c75252099.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133) if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)
......
...@@ -76,7 +76,7 @@ function c75574498.spcost2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -76,7 +76,7 @@ function c75574498.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c75574498.spfilter2(c,e,tp) function c75574498.spfilter2(c,e,tp)
return c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c75574498.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c75574498.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
......
...@@ -28,7 +28,7 @@ function c7573135.hspcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,7 +28,7 @@ function c7573135.hspcon(e,tp,eg,ep,ev,re,r,rp)
return st>=(SUMMON_TYPE_SPECIAL+100) and st<(SUMMON_TYPE_SPECIAL+150) return st>=(SUMMON_TYPE_SPECIAL+100) and st<(SUMMON_TYPE_SPECIAL+150)
end end
function c7573135.hspfilter(c,e,tp) function c7573135.hspfilter(c,e,tp)
return c:IsSetCard(0x19) and c:IsCanBeSpecialSummoned(e,113,tp,false,false) return c:IsSetCard(0x19) and c:IsCanBeSpecialSummoned(e,113,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c7573135.hsptg(e,tp,eg,ep,ev,re,r,rp,chk) function c7573135.hsptg(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
......
...@@ -21,7 +21,7 @@ function c76066541.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -21,7 +21,7 @@ function c76066541.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c76066541.filter(c,e,tp) function c76066541.filter(c,e,tp)
return c:IsType(TYPE_PENDULUM) and c:IsAttribute(ATTRIBUTE_EARTH) return c:IsType(TYPE_PENDULUM) and c:IsAttribute(ATTRIBUTE_EARTH)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c76066541.target(e,tp,eg,ep,ev,re,r,rp,chk) function c76066541.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
......
...@@ -54,7 +54,7 @@ function c78202553.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function c78202553.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c78202553.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c78202553.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c78202553.spop(e,tp,eg,ep,ev,re,r,rp) function c78202553.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -30,7 +30,7 @@ function c78391364.spcon(e,c) ...@@ -30,7 +30,7 @@ function c78391364.spcon(e,c)
and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end end
function c78391364.filter(c,e,tp) function c78391364.filter(c,e,tp)
return c:IsSetCard(0x9a) and c:IsLevelBelow(4) and not c:IsCode(78391364) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x9a) and c:IsLevelBelow(4) and not c:IsCode(78391364) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c78391364.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c78391364.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c78391364.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c78391364.filter(chkc,e,tp) end
......
...@@ -72,7 +72,7 @@ function c79531196.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -72,7 +72,7 @@ function c79531196.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c79531196.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c79531196.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c79531196.spop(e,tp,eg,ep,ev,re,r,rp) function c79531196.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -12,7 +12,7 @@ function c79544790.initial_effect(c) ...@@ -12,7 +12,7 @@ function c79544790.initial_effect(c)
end end
function c79544790.filter(c,e,tp) function c79544790.filter(c,e,tp)
return c:IsLocation(LOCATION_GRAVE) and c:IsCanBeEffectTarget(e) return c:IsLocation(LOCATION_GRAVE) and c:IsCanBeEffectTarget(e)
and c:GetPreviousControler()==tp and c:IsReason(REASON_BATTLE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:GetPreviousControler()==tp and c:IsReason(REASON_BATTLE) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c79544790.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c79544790.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return eg:IsContains(chkc) and c79544790.filter(chkc,e,tp) end if chkc then return eg:IsContains(chkc) and c79544790.filter(chkc,e,tp) end
......
...@@ -41,7 +41,7 @@ function c80208158.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function c80208158.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c80208158.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c80208158.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c80208158.spop(e,tp,eg,ep,ev,re,r,rp) function c80208158.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -26,7 +26,7 @@ function c80244114.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,7 +26,7 @@ function c80244114.spcon(e,tp,eg,ep,ev,re,r,rp)
return rp~=tp and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsReason(REASON_DESTROY) return rp~=tp and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and e:GetHandler():IsReason(REASON_DESTROY)
end end
function c80244114.spfilter(c,e,tp) function c80244114.spfilter(c,e,tp)
return c:IsCode(44508094) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(44508094) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c80244114.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c80244114.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c80244114.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c80244114.spfilter(chkc,e,tp) end
......
...@@ -32,7 +32,7 @@ function c80978111.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c80978111.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c80978111.target(e,tp,eg,ep,ev,re,r,rp,chk) function c80978111.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp)>0 if chk==0 then return Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE,1-tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c80978111.operation(e,tp,eg,ep,ev,re,r,rp) function c80978111.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -17,7 +17,7 @@ function c81587028.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c81587028.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY) return e:GetHandler():IsReason(REASON_DESTROY)
end end
function c81587028.filter1(c,e,tp) function c81587028.filter1(c,e,tp)
return c:IsType(TYPE_NORMAL) and (c:GetAttack()==0 or c:GetDefense()==0) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_NORMAL) and (c:GetAttack()==0 or c:GetDefense()==0) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c81587028.filter2(c,g) function c81587028.filter2(c,g)
return g:IsExists(c81587028.filter3,1,c,c:GetCode()) return g:IsExists(c81587028.filter3,1,c,c:GetCode())
......
...@@ -42,7 +42,7 @@ function c82052602.clear(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c82052602.clear(e,tp,eg,ep,ev,re,r,rp)
c82052602[1]=false c82052602[1]=false
end end
function c82052602.filter(c,id,e,tp) function c82052602.filter(c,id,e,tp)
return c:IsReason(REASON_BATTLE) and c:GetTurnID()==id and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsReason(REASON_BATTLE) and c:GetTurnID()==id and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c82052602.condition(e,tp,eg,ep,ev,re,r,rp) function c82052602.condition(e,tp,eg,ep,ev,re,r,rp)
return c82052602[tp] and Duel.GetFlagEffect(tp,82052602)==0 return c82052602[tp] and Duel.GetFlagEffect(tp,82052602)==0
......
...@@ -87,7 +87,7 @@ function c82321037.spcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,7 +87,7 @@ function c82321037.spcon2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_EFFECT) return e:GetHandler():IsReason(REASON_EFFECT)
end end
function c82321037.thfilter(c,e,tp) function c82321037.thfilter(c,e,tp)
return not c:IsAttribute(ATTRIBUTE_WATER) and c:IsRace(RACE_WYRM) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return not c:IsAttribute(ATTRIBUTE_WATER) and c:IsRace(RACE_WYRM) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c82321037.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c82321037.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
......
...@@ -18,7 +18,7 @@ function c84136000.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,7 +18,7 @@ function c84136000.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c84136000.cfilter,1,nil,tp) return eg:IsExists(c84136000.cfilter,1,nil,tp)
end end
function c84136000.spfilter(c,e,tp) function c84136000.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c84136000.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c84136000.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
......
...@@ -22,7 +22,7 @@ function c84812868.initial_effect(c) ...@@ -22,7 +22,7 @@ function c84812868.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c84812868.spfilter(c,e,tp) function c84812868.spfilter(c,e,tp)
return c:IsSetCard(0xdf) and not c:IsCode(84812868) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xdf) and not c:IsCode(84812868) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c84812868.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c84812868.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c84812868.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c84812868.spfilter(chkc,e,tp) end
......
...@@ -78,11 +78,11 @@ function c86274272.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -78,11 +78,11 @@ function c86274272.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST)
end end
function c86274272.filter1(c,e,tp) function c86274272.filter1(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x10b5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x10b5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
and Duel.IsExistingTarget(c86274272.filter2,tp,LOCATION_REMOVED,0,1,c,e,tp) and Duel.IsExistingTarget(c86274272.filter2,tp,LOCATION_REMOVED,0,1,c,e,tp)
end end
function c86274272.filter2(c,e,tp) function c86274272.filter2(c,e,tp)
return c:IsFaceup() and c:IsSetCard(0x20b5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsFaceup() and c:IsSetCard(0x20b5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c86274272.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c86274272.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
......
...@@ -19,7 +19,7 @@ function c86555018.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -19,7 +19,7 @@ function c86555018.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c86555018.cfilter,1,nil,tp) return eg:IsExists(c86555018.cfilter,1,nil,tp)
end end
function c86555018.spfilter(c,e,tp) function c86555018.spfilter(c,e,tp)
return c:IsLevelBelow(4) and c:IsSetCard(0x70) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsSetCard(0x70) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c86555018.target(e,tp,eg,ep,ev,re,r,rp,chk) function c86555018.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
......
...@@ -13,7 +13,7 @@ function c88671720.initial_effect(c) ...@@ -13,7 +13,7 @@ function c88671720.initial_effect(c)
end end
function c88671720.filter(c,e,tp) function c88671720.filter(c,e,tp)
return c:GetLevel()==4 and c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_DARK) return c:GetLevel()==4 and c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_DARK)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c88671720.sumtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c88671720.sumtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c88671720.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c88671720.filter(chkc,e,tp) end
......
...@@ -39,7 +39,7 @@ end ...@@ -39,7 +39,7 @@ end
function c89362180.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c89362180.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local bc=e:GetHandler():GetBattleTarget() local bc=e:GetHandler():GetBattleTarget()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and bc:IsCanBeSpecialSummoned(e,0,tp,false,false) end and bc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetTargetCard(bc) Duel.SetTargetCard(bc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,bc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,bc,1,0,0)
end end
......
...@@ -25,7 +25,7 @@ function c89774530.initial_effect(c) ...@@ -25,7 +25,7 @@ function c89774530.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c89774530.filter(c,e,tp) function c89774530.filter(c,e,tp)
return c:IsCode(89774530) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(89774530) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c89774530.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c89774530.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -37,7 +37,7 @@ function c90238142.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,7 +37,7 @@ function c90238142.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,c90238142.cfilter,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,c90238142.cfilter,1,1,REASON_COST+REASON_DISCARD)
end end
function c90238142.filter(c,e,tp) function c90238142.filter(c,e,tp)
return c:IsSetCard(0x64) and c:GetCode()~=90238142 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x64) and c:GetCode()~=90238142 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c90238142.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c90238142.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -62,7 +62,7 @@ function c91895091.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,7 +62,7 @@ function c91895091.spcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsRelateToBattle() and c:GetOverlayCount()>0 return c:IsRelateToBattle() and c:GetOverlayCount()>0
end end
function c91895091.spfilter(c,e,tp) function c91895091.spfilter(c,e,tp)
return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsAttribute(ATTRIBUTE_EARTH) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c91895091.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c91895091.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c91895091.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c91895091.spfilter(chkc,e,tp) end
......
...@@ -26,7 +26,7 @@ function c92924317.initial_effect(c) ...@@ -26,7 +26,7 @@ function c92924317.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c92924317.filter(c,e,tp) function c92924317.filter(c,e,tp)
return c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_NORMAL) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c92924317.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c92924317.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c92924317.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c92924317.filter(chkc,e,tp) end
......
...@@ -51,7 +51,7 @@ function c92970404.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c92970404.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c92970404.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c92970404.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c92970404.spop(e,tp,eg,ep,ev,re,r,rp) function c92970404.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -31,7 +31,7 @@ function c94344242.xyzlimit(e,c) ...@@ -31,7 +31,7 @@ function c94344242.xyzlimit(e,c)
return not c:IsRace(RACE_INSECT) return not c:IsRace(RACE_INSECT)
end end
function c94344242.spfilter(c,e,tp) function c94344242.spfilter(c,e,tp)
return c:GetLevel()==3 and c:IsRace(RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetLevel()==3 and c:IsRace(RACE_INSECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c94344242.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c94344242.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsPosition(POS_FACEUP_ATTACK) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsPosition(POS_FACEUP_ATTACK) end
......
...@@ -27,7 +27,7 @@ function c94484482.condition2(e,tp,eg,ep,ev,re,r,rp) ...@@ -27,7 +27,7 @@ function c94484482.condition2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c94484482.cfilter,1,nil,tp) return eg:IsExists(c94484482.cfilter,1,nil,tp)
end end
function c94484482.spfilter(c,e,tp) function c94484482.spfilter(c,e,tp)
return c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c94484482.target(e,tp,eg,ep,ev,re,r,rp,chk) function c94484482.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
......
...@@ -41,7 +41,7 @@ function c94515289.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -41,7 +41,7 @@ function c94515289.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c94515289.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c94515289.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c94515289.spop(e,tp,eg,ep,ev,re,r,rp) function c94515289.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -56,7 +56,7 @@ function c94982447.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function c94982447.spcon(e,tp,eg,ep,ev,re,r,rp)
bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE bit.band(c:GetSummonType(),SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE
end end
function c94982447.spfilter(c,e,tp) function c94982447.spfilter(c,e,tp)
return c:IsSetCard(0xf9) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xf9) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c94982447.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c94982447.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -51,7 +51,7 @@ function c95218695.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c95218695.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c95218695.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c95218695.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c95218695.spop(e,tp,eg,ep,ev,re,r,rp) function c95218695.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -27,7 +27,7 @@ function c95457011.initial_effect(c) ...@@ -27,7 +27,7 @@ function c95457011.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c95457011.spfilter(c,e,tp) function c95457011.spfilter(c,e,tp)
return c:GetAttack()==800 and c:GetDefense()==1000 and not c:IsCode(95457011) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetAttack()==800 and c:GetDefense()==1000 and not c:IsCode(95457011) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c95457011.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c95457011.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -31,7 +31,7 @@ function c95833645.splimit(e,c) ...@@ -31,7 +31,7 @@ function c95833645.splimit(e,c)
return c:GetRace()~=RACE_WYRM return c:GetRace()~=RACE_WYRM
end end
function c95833645.filter(c,e,tp) function c95833645.filter(c,e,tp)
return c:IsRace(RACE_WYRM) and not c:IsCode(95833645) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_WYRM) and not c:IsCode(95833645) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c95833645.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c95833645.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c95833645.filter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c95833645.filter(chkc,e,tp) end
......
...@@ -83,7 +83,7 @@ function c96100333.spcfilter2(c,sg) ...@@ -83,7 +83,7 @@ function c96100333.spcfilter2(c,sg)
return sg:IsExists(aux.TRUE,1,c) return sg:IsExists(aux.TRUE,1,c)
end end
function c96100333.spfilter(c,e,tp) function c96100333.spfilter(c,e,tp)
return c:IsRace(RACE_ROCK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_ROCK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c96100333.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c96100333.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c96100333.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c96100333.spfilter(chkc,e,tp) end
......
...@@ -103,7 +103,7 @@ function c96381979.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -103,7 +103,7 @@ function c96381979.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c96381979.spfilter(c,e,tp) function c96381979.spfilter(c,e,tp)
return c:IsLevelBelow(4) and c:IsRace(RACE_BEASTWARRIOR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsRace(RACE_BEASTWARRIOR) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c96381979.afilter1(c,g) function c96381979.afilter1(c,g)
return g:IsExists(c96381979.afilter2,1,c,c:GetAttack()) return g:IsExists(c96381979.afilter2,1,c,c:GetAttack())
......
...@@ -31,7 +31,7 @@ function c96385345.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,7 +31,7 @@ function c96385345.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function c96385345.spfilter(c,e,tp) function c96385345.spfilter(c,e,tp)
return c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_PLANT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c96385345.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c96385345.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
......
...@@ -48,7 +48,7 @@ function c97219708.recop(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c97219708.recop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c97219708.spfilter(c,e,tp) function c97219708.spfilter(c,e,tp)
return c:IsType(TYPE_XYZ) and c:IsSetCard(0xba) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_XYZ) and c:IsSetCard(0xba) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c97219708.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c97219708.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end if chk==0 then return e:GetHandler():IsReleasable() end
......
...@@ -23,7 +23,7 @@ function c97520701.initial_effect(c) ...@@ -23,7 +23,7 @@ function c97520701.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c97520701.filter(c,e,tp) function c97520701.filter(c,e,tp)
return c:IsRace(RACE_MACHINE) and c:IsAttackAbove(3000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_MACHINE) and c:IsAttackAbove(3000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c97520701.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c97520701.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c97520701.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c97520701.filter(chkc,e,tp) end
......
...@@ -71,7 +71,7 @@ function c9753964.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,7 +71,7 @@ function c9753964.spcon(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp return ep~=tp
end end
function c9753964.spfilter(c,e,tp) function c9753964.spfilter(c,e,tp)
return c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_TUNER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c9753964.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c9753964.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c9753964.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c9753964.spfilter(chkc,e,tp) end
......
...@@ -18,7 +18,7 @@ function c9861795.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,7 +18,7 @@ function c9861795.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c9861795.target(e,tp,eg,ep,ev,re,r,rp,chk) function c9861795.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
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c9861795.operation(e,tp,eg,ep,ev,re,r,rp) function c9861795.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -24,7 +24,7 @@ function c98927491.initial_effect(c) ...@@ -24,7 +24,7 @@ function c98927491.initial_effect(c)
end end
function c98927491.filter(c,e,tp) function c98927491.filter(c,e,tp)
return c:IsLocation(LOCATION_GRAVE) and c:IsReason(REASON_BATTLE) and c:GetPreviousControler()==tp return c:IsLocation(LOCATION_GRAVE) and c:IsReason(REASON_BATTLE) and c:GetPreviousControler()==tp
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c98927491.target(e,tp,eg,ep,ev,re,r,rp,chk) function c98927491.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
......
...@@ -38,7 +38,7 @@ function c99946920.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c99946920.condition(e,tp,eg,ep,ev,re,r,rp)
and c:IsPreviousLocation(LOCATION_ONFIELD) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_ONFIELD) and c:GetPreviousControler()==tp
end end
function c99946920.filter(c,e,tp) function c99946920.filter(c,e,tp)
return c:IsSetCard(0x9e) and not c:IsCode(99946920) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x9e) and not c:IsCode(99946920) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c99946920.target(e,tp,eg,ep,ev,re,r,rp,chk) function c99946920.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
......
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