Commit dd627aaf authored by salix5's avatar salix5

fix IsCode()

Replace: ([a-z]+):GetCode\(\)~=(\d+) -> not \1:IsCode\(\2\)
parent 09817919
...@@ -12,7 +12,7 @@ function c11834972.initial_effect(c) ...@@ -12,7 +12,7 @@ function c11834972.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c11834972.cfilter(c) function c11834972.cfilter(c)
return c:IsSetCard(0x39) and c:GetCode()~=11834972 return c:IsSetCard(0x39) and not c:IsCode(11834972)
end end
function c11834972.condition(e,tp,eg,ep,ev,re,r,rp) function c11834972.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c11834972.cfilter,tp,LOCATION_GRAVE,0,1,nil) return Duel.IsExistingMatchingCard(c11834972.cfilter,tp,LOCATION_GRAVE,0,1,nil)
......
...@@ -39,7 +39,7 @@ function c1315120.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c1315120.regop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c1315120.filter(c) function c1315120.filter(c)
return c:IsSetCard(0x27) and c:GetCode()~=1315120 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x27) and not c:IsCode(1315120) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c1315120.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c1315120.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c1315120.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c1315120.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -11,7 +11,7 @@ function c13409151.initial_effect(c) ...@@ -11,7 +11,7 @@ function c13409151.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c13409151.filter(c) function c13409151.filter(c)
return c:IsFaceup() and c:GetCode()~=13409151 and c:IsCanTurnSet() return c:IsFaceup() and not c:IsCode(13409151) and c:IsCanTurnSet()
end end
function c13409151.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c13409151.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c13409151.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c13409151.filter(chkc) end
......
...@@ -17,7 +17,7 @@ function c14212201.initial_effect(c) ...@@ -17,7 +17,7 @@ function c14212201.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c14212201.filter(c,e,tp) function c14212201.filter(c,e,tp)
return c:GetCode()~=14212201 and c:IsSetCard(0x8e) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return not c:IsCode(14212201) and c:IsSetCard(0x8e) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c14212201.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c14212201.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():IsAttackPos() and e:GetHandler():IsPreviousPosition(POS_DEFENSE) return e:GetHandler():IsAttackPos() and e:GetHandler():IsPreviousPosition(POS_DEFENSE)
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,POS_FACEUP_DEFENSE) return c:IsSetCard(0x6042) and not c:IsCode(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
......
...@@ -13,7 +13,7 @@ function c16111820.initial_effect(c) ...@@ -13,7 +13,7 @@ function c16111820.initial_effect(c)
end end
function c16111820.filter(c,tp) function c16111820.filter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousPosition(POS_DEFENSE) and c:IsReason(REASON_BATTLE) and c:IsLocation(LOCATION_GRAVE) return c:IsPreviousControler(tp) and c:IsPreviousPosition(POS_DEFENSE) and c:IsReason(REASON_BATTLE) and c:IsLocation(LOCATION_GRAVE)
and c:IsSetCard(0x22) and c:GetCode()~=16111820 and c:IsSetCard(0x22) and not c:IsCode(16111820)
end end
function c16111820.condition(e,tp,eg,ep,ev,re,r,rp) function c16111820.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c16111820.filter,1,nil,tp) return eg:IsExists(c16111820.filter,1,nil,tp)
......
...@@ -23,7 +23,7 @@ function c16889337.initial_effect(c) ...@@ -23,7 +23,7 @@ function c16889337.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c16889337.filter(c) function c16889337.filter(c)
return c:IsType(TYPE_SPIRIT) and c:GetCode()~=16889337 and c:IsAbleToHand() return c:IsType(TYPE_SPIRIT) and not c:IsCode(16889337) and c:IsAbleToHand()
end end
function c16889337.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c16889337.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c16889337.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c16889337.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -14,7 +14,7 @@ function c16923472.initial_effect(c) ...@@ -14,7 +14,7 @@ function c16923472.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c16923472.costfilter(c) function c16923472.costfilter(c)
return c:IsFaceup() and c:IsSetCard(0x58) and c:GetCode()~=16923472 return c:IsFaceup() and c:IsSetCard(0x58) and not c:IsCode(16923472)
end end
function c16923472.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c16923472.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,c16923472.costfilter,1,nil) end if chk==0 then return Duel.CheckReleaseGroup(tp,c16923472.costfilter,1,nil) end
......
...@@ -19,7 +19,7 @@ function c16984449.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -19,7 +19,7 @@ function c16984449.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 c16984449.filter(c,e,sp) function c16984449.filter(c,e,sp)
return c:IsType(TYPE_DUAL) and c:GetCode()~=16984449 and c:IsCanBeSpecialSummoned(e,0,sp,false,false) return c:IsType(TYPE_DUAL) and not c:IsCode(16984449) and c:IsCanBeSpecialSummoned(e,0,sp,false,false)
end end
function c16984449.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c16984449.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c16984449.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c16984449.filter(chkc,e,tp) end
......
...@@ -48,7 +48,7 @@ function c19139516.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c19139516.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(c:GetReason(),0x41)==0x41 and re:GetOwner():IsSetCard(0x24) return bit.band(c:GetReason(),0x41)==0x41 and re:GetOwner():IsSetCard(0x24)
end end
function c19139516.filter(c) function c19139516.filter(c)
return c:IsSetCard(0x24) and c:IsType(TYPE_MONSTER) and c:GetCode()~=19139516 and c:IsAbleToHand() return c:IsSetCard(0x24) and c:IsType(TYPE_MONSTER) and not c:IsCode(19139516) and c:IsAbleToHand()
end end
function c19139516.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c19139516.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c19139516.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c19139516.filter(chkc) end
......
...@@ -21,7 +21,7 @@ function c2009101.initial_effect(c) ...@@ -21,7 +21,7 @@ function c2009101.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c2009101.filter(c) function c2009101.filter(c)
return c:IsFaceup() and c:IsSetCard(0x33) and c:GetCode()~=2009101 return c:IsFaceup() and c:IsSetCard(0x33) and not c:IsCode(2009101)
end end
function c2009101.spcon(e,c) function c2009101.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -54,7 +54,7 @@ function c21208154.ttop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -54,7 +54,7 @@ function c21208154.ttop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Release(g,REASON_SUMMON+REASON_MATERIAL) Duel.Release(g,REASON_SUMMON+REASON_MATERIAL)
end end
function c21208154.filter(c) function c21208154.filter(c)
return c:IsFaceup() and c:GetCode()~=21208154 and not c:IsHasEffect(21208154) return c:IsFaceup() and not c:IsCode(21208154) and not c:IsHasEffect(21208154)
end end
function c21208154.adval(e,c) function c21208154.adval(e,c)
local g=Duel.GetMatchingGroup(c21208154.filter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(c21208154.filter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
......
...@@ -13,7 +13,7 @@ function c21524779.initial_effect(c) ...@@ -13,7 +13,7 @@ function c21524779.initial_effect(c)
end end
function c21524779.filter(c) function c21524779.filter(c)
return c:IsRace(RACE_THUNDER) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLevel(4) return c:IsRace(RACE_THUNDER) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLevel(4)
and c:GetCode()~=21524779 and c:IsSummonable(true,nil) and not c:IsCode(21524779) and c:IsSummonable(true,nil)
end end
function c21524779.target(e,tp,eg,ep,ev,re,r,rp,chk) function c21524779.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c21524779.filter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c21524779.filter,tp,LOCATION_HAND,0,1,nil) end
......
...@@ -38,7 +38,7 @@ function c21770260.initial_effect(c) ...@@ -38,7 +38,7 @@ function c21770260.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c21770260.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) function c21770260.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:GetCode()~=21770261 return not c:IsCode(21770261)
end end
function c21770260.spcon(e,tp,eg,ep,ev,re,r,rp) function c21770260.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
......
...@@ -13,7 +13,7 @@ function c22512406.initial_effect(c) ...@@ -13,7 +13,7 @@ function c22512406.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c22512406.cfilter1(c) function c22512406.cfilter1(c)
return c:IsFaceup() and c:IsSetCard(0x2b) and c:GetCode()~=22512406 return c:IsFaceup() and c:IsSetCard(0x2b) and not c:IsCode(22512406)
end end
function c22512406.cfilter2(c) function c22512406.cfilter2(c)
return c:IsFaceup() and c:IsSetCard(0x2b) return c:IsFaceup() and c:IsSetCard(0x2b)
......
...@@ -81,7 +81,7 @@ function c23015896.spcon2(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,7 +81,7 @@ function c23015896.spcon2(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 c23015896.spfilter(c,e,tp) function c23015896.spfilter(c,e,tp)
return c:IsSetCard(0x81) and c:GetCode()~=23015896 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x81) and not c:IsCode(23015896) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c23015896.sptg2(e,tp,eg,ep,ev,re,r,rp,chk) function c23015896.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 c23297235.initial_effect(c) ...@@ -12,7 +12,7 @@ function c23297235.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c23297235.filter(c,e,tp) function c23297235.filter(c,e,tp)
return c:IsDefenseBelow(200) and c:IsAttribute(ATTRIBUTE_FIRE) and c:GetCode()~=23297235 return c:IsDefenseBelow(200) and c:IsAttribute(ATTRIBUTE_FIRE) and not c:IsCode(23297235)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c23297235.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c23297235.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -24,5 +24,5 @@ function c2333365.descon(e) ...@@ -24,5 +24,5 @@ function c2333365.descon(e)
return not Duel.IsExistingMatchingCard(c2333365.filter,0,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler()) return not Duel.IsExistingMatchingCard(c2333365.filter,0,LOCATION_MZONE,LOCATION_MZONE,1,e:GetHandler())
end end
function c2333365.atlimit(e,c) function c2333365.atlimit(e,c)
return c:IsFaceup() and c:GetCode()~=2333365 and c:IsSetCard(0x42) return c:IsFaceup() and not c:IsCode(2333365) and c:IsSetCard(0x42)
end end
...@@ -40,7 +40,7 @@ function c2377034.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function c2377034.thcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c2377034.filter(c) function c2377034.filter(c)
local def=c:GetDefense() local def=c:GetDefense()
return def>=0 and def<=200 and c:IsAttribute(ATTRIBUTE_FIRE) and c:GetCode()~=2377034 and c:IsAbleToHand() return def>=0 and def<=200 and c:IsAttribute(ATTRIBUTE_FIRE) and not c:IsCode(2377034) and c:IsAbleToHand()
end end
function c2377034.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c2377034.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c2377034.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c2377034.filter(chkc) end
......
...@@ -11,5 +11,5 @@ function c23782705.initial_effect(c) ...@@ -11,5 +11,5 @@ function c23782705.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c23782705.tg(e,c) function c23782705.tg(e,c)
return c:IsSetCard(0x36) and c:GetCode()~=23782705 return c:IsSetCard(0x36) and not c:IsCode(23782705)
end end
...@@ -17,7 +17,7 @@ function c23899727.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c23899727.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY) and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsReason(REASON_DESTROY) and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function c23899727.filter(c,e,tp) function c23899727.filter(c,e,tp)
return c:IsSetCard(0x74) and c:GetCode()~=23899727 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x74) and not c:IsCode(23899727) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c23899727.target(e,tp,eg,ep,ev,re,r,rp,chk) function c23899727.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 c24040093.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,7 +23,7 @@ function c24040093.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end end
function c24040093.filter(c) function c24040093.filter(c)
return c:IsSetCard(0x35) and c:IsType(TYPE_MONSTER) and c:GetCode()~=24040093 and c:IsAbleToHand() return c:IsSetCard(0x35) and c:IsType(TYPE_MONSTER) and not c:IsCode(24040093) and c:IsAbleToHand()
end end
function c24040093.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c24040093.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c24040093.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c24040093.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -13,7 +13,7 @@ function c24062258.initial_effect(c) ...@@ -13,7 +13,7 @@ function c24062258.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c24062258.filter(c,e,tp) function c24062258.filter(c,e,tp)
return c:GetCode()~=24062258 and c:IsLevel(4) and c:IsAttribute(ATTRIBUTE_DARK) and (c:IsAttack(0) or c:IsDefense(0)) return not c:IsCode(24062258) and c:IsLevel(4) and c:IsAttribute(ATTRIBUTE_DARK) and (c:IsAttack(0) or c:IsDefense(0))
and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) 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)
......
...@@ -13,7 +13,7 @@ function c2407147.initial_effect(c) ...@@ -13,7 +13,7 @@ function c2407147.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c2407147.cfilter(c) function c2407147.cfilter(c)
return c:IsSetCard(0x39) and c:GetCode()~=2407147 return c:IsSetCard(0x39) and not c:IsCode(2407147)
end end
function c2407147.condition(e,tp,eg,ep,ev,re,r,rp) function c2407147.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c2407147.cfilter,tp,LOCATION_GRAVE,0,1,nil) return Duel.IsExistingMatchingCard(c2407147.cfilter,tp,LOCATION_GRAVE,0,1,nil)
......
...@@ -36,7 +36,7 @@ function c2511717.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c2511717.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c2511717.atkfilter(c) function c2511717.atkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d) and c:GetCode()~=2511717 return c:IsFaceup() and c:IsSetCard(0x3d) and not c:IsCode(2511717)
end end
function c2511717.atkcon(e) function c2511717.atkcon(e)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -21,7 +21,7 @@ function c27782503.initial_effect(c) ...@@ -21,7 +21,7 @@ function c27782503.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c27782503.cfilter(c) function c27782503.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d) and c:GetCode()~=27782503 return c:IsFaceup() and c:IsSetCard(0x3d) and not c:IsCode(27782503)
end end
function c27782503.descon(e,tp,eg,ep,ev,re,r,rp) function c27782503.descon(e,tp,eg,ep,ev,re,r,rp)
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
......
...@@ -14,7 +14,7 @@ function c28118128.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -14,7 +14,7 @@ function c28118128.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c28118128.filter(c,e,tp) function c28118128.filter(c,e,tp)
return c:GetCode()~=28118128 and c:IsLevel(2) and c:IsRace(RACE_BEAST) return not c:IsCode(28118128) and c:IsLevel(2) and c:IsRace(RACE_BEAST)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c28118128.operation(e,tp,eg,ep,ev,re,r,rp) function c28118128.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -24,7 +24,7 @@ function c28190303.spcon(e,c) ...@@ -24,7 +24,7 @@ function c28190303.spcon(e,c)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
return g:GetCount()==1 and tc:IsSetCard(0x33) and tc:GetCode()~=28190303 return g:GetCount()==1 and tc:IsSetCard(0x33) and not tc:IsCode(28190303)
end end
function c28190303.valcon(e,re,r,rp) function c28190303.valcon(e,re,r,rp)
return bit.band(r,REASON_BATTLE)~=0 return bit.band(r,REASON_BATTLE)~=0
......
...@@ -31,7 +31,7 @@ function c28201945.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,7 +31,7 @@ function c28201945.spcon(e,tp,eg,ep,ev,re,r,rp)
return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and c:GetType()==TYPE_TRAP and c:IsSetCard(0x4c,0x89) return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and c:GetType()==TYPE_TRAP and c:IsSetCard(0x4c,0x89)
end end
function c28201945.filter(c,e,tp,ft) function c28201945.filter(c,e,tp,ft)
return c:IsSetCard(0x108a) and c:GetCode()~=28201945 and c:IsType(TYPE_MONSTER) and (c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false))) return c:IsSetCard(0x108a) and not c:IsCode(28201945) and c:IsType(TYPE_MONSTER) and (c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)))
end end
function c28201945.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c28201945.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
......
...@@ -49,7 +49,7 @@ function c29088922.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function c29088922.lvop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c29088922.cfilter(c) function c29088922.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x31) and c:GetCode()~=29088922 return c:IsFaceup() and c:IsSetCard(0x31) and not c:IsCode(29088922)
end end
function c29088922.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c29088922.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c29088922.cfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c29088922.cfilter,tp,LOCATION_MZONE,0,1,nil) end
......
...@@ -73,7 +73,7 @@ function c30936186.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -73,7 +73,7 @@ function c30936186.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
end end
function c30936186.spfilter(c,e,tp) function c30936186.spfilter(c,e,tp)
return c:IsLevelBelow(4) and c:IsSetCard(0x1d) and c:GetCode()~=30936186 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsSetCard(0x1d) and not c:IsCode(30936186) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c30936186.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c30936186.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 c313513.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -62,7 +62,7 @@ function c313513.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK)
end end
function c313513.dfilter(c) function c313513.dfilter(c)
return c:IsFacedown() or c:GetCode()~=83104731 return c:IsFacedown() or not c:IsCode(83104731)
end end
function c313513.activate(e,tp,eg,ep,ev,re,r,rp) function c313513.activate(e,tp,eg,ep,ev,re,r,rp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
......
...@@ -40,7 +40,7 @@ function c31766317.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function c31766317.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c31766317.filter(c,e,tp) function c31766317.filter(c,e,tp)
return c:IsRace(RACE_FIEND) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsLevelAbove(6) return c:IsRace(RACE_FIEND) and c:IsAttribute(ATTRIBUTE_DARK) and c:IsLevelAbove(6)
and c:GetCode()~=31766317 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and not c:IsCode(31766317) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c31766317.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c31766317.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c31766317.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c31766317.filter(chkc,e,tp) end
......
...@@ -18,7 +18,7 @@ function c31904181.initial_effect(c) ...@@ -18,7 +18,7 @@ function c31904181.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c31904181.cfilter(c) function c31904181.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d) and c:GetCode()~=31904181 return c:IsFaceup() and c:IsSetCard(0x3d) and not c:IsCode(31904181)
end end
function c31904181.dircon(e) function c31904181.dircon(e)
return Duel.IsExistingMatchingCard(c31904181.cfilter,e:GetHandler():GetControler(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c31904181.cfilter,e:GetHandler():GetControler(),LOCATION_MZONE,0,1,nil)
......
...@@ -51,7 +51,7 @@ function c32761286.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c32761286.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(c:GetReason(),0x41)==0x41 and re:GetOwner():IsSetCard(0x24) return bit.band(c:GetReason(),0x41)==0x41 and re:GetOwner():IsSetCard(0x24)
end end
function c32761286.filter(c) function c32761286.filter(c)
return c:IsSetCard(0x24) and c:IsType(TYPE_MONSTER) and c:GetCode()~=32761286 and c:IsAbleToHand() return c:IsSetCard(0x24) and c:IsType(TYPE_MONSTER) and not c:IsCode(32761286) and c:IsAbleToHand()
end end
function c32761286.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c32761286.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c32761286.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c32761286.filter(chkc) end
......
...@@ -31,7 +31,7 @@ function c3298689.filter1(c,e,tp) ...@@ -31,7 +31,7 @@ function c3298689.filter1(c,e,tp)
and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL) and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL)
end end
function c3298689.filter2(c,e,tp,mc,rk) function c3298689.filter2(c,e,tp,mc,rk)
if c:GetOriginalCode()==6165656 and mc:GetCode()~=48995978 then return false end if c:GetOriginalCode()==6165656 and not mc:IsCode(48995978) then return false end
return c:IsRank(rk) and c:IsAttribute(ATTRIBUTE_DARK) and mc:IsCanBeXyzMaterial(c) return c:IsRank(rk) and c:IsAttribute(ATTRIBUTE_DARK) and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
end end
......
...@@ -19,7 +19,7 @@ function c33655493.initial_effect(c) ...@@ -19,7 +19,7 @@ function c33655493.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c33655493.tg(e,c) function c33655493.tg(e,c)
return c:IsFaceup() and c:GetCode()~=33655493 return c:IsFaceup() and not c:IsCode(33655493)
end end
function c33655493.tgval(e,re,rp) function c33655493.tgval(e,re,rp)
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and rp==1-e:GetHandlerPlayer() return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and rp==1-e:GetHandlerPlayer()
......
...@@ -36,7 +36,7 @@ function c33981008.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c33981008.drcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp and Duel.IsExistingMatchingCard(c33981008.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) return Duel.GetTurnPlayer()==tp and Duel.IsExistingMatchingCard(c33981008.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil)
end end
function c33981008.filter(c) function c33981008.filter(c)
return c:IsSetCard(0x106e) and c:GetCode()~=33981008 and c:IsType(TYPE_SPELL) and c:IsAbleToDeck() return c:IsSetCard(0x106e) and not c:IsCode(33981008) and c:IsType(TYPE_SPELL) and c:IsAbleToDeck()
end end
function c33981008.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c33981008.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) and Duel.IsExistingMatchingCard(c33981008.filter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) and Duel.IsExistingMatchingCard(c33981008.filter,tp,LOCATION_GRAVE,0,1,nil) end
......
...@@ -40,7 +40,7 @@ function c35112613.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,7 +40,7 @@ function c35112613.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function c35112613.cfilter(c) function c35112613.cfilter(c)
return c:IsSetCard(0x55) and c:IsType(TYPE_MONSTER) and c:GetCode()~=35112613 and c:IsAbleToGraveAsCost() return c:IsSetCard(0x55) and c:IsType(TYPE_MONSTER) and not c:IsCode(35112613) and c:IsAbleToGraveAsCost()
end end
function c35112613.thcost(e,tp,eg,ep,ev,re,r,rp,chk) function c35112613.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c35112613.cfilter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c35112613.cfilter,tp,LOCATION_HAND,0,1,nil) end
......
...@@ -18,7 +18,7 @@ function c35307484.initial_effect(c) ...@@ -18,7 +18,7 @@ function c35307484.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c35307484.cfilter(c,tp) function c35307484.cfilter(c,tp)
return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(0x8b) and c:GetCode()~=35307484 return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(0x8b) and not c:IsCode(35307484)
end end
function c35307484.condition(e,tp,eg,ep,ev,re,r,rp) function c35307484.condition(e,tp,eg,ep,ev,re,r,rp)
return not eg:IsContains(e:GetHandler()) and eg:IsExists(c35307484.cfilter,1,nil,tp) return not eg:IsContains(e:GetHandler()) and eg:IsExists(c35307484.cfilter,1,nil,tp)
......
...@@ -38,7 +38,7 @@ function c36687247.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c36687247.regop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c36687247.filter(c) function c36687247.filter(c)
return c:IsSetCard(0x27) and c:GetCode()~=36687247 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x27) and not c:IsCode(36687247) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c36687247.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c36687247.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c36687247.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c36687247.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -16,7 +16,7 @@ function c37349495.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c37349495.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function c37349495.filter(c) function c37349495.filter(c)
return c:IsSetCard(0x2a) and c:IsType(TYPE_MONSTER) and c:GetCode()~=37349495 and c:IsAbleToHand() return c:IsSetCard(0x2a) and c:IsType(TYPE_MONSTER) and not c:IsCode(37349495) and c:IsAbleToHand()
end end
function c37349495.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c37349495.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c37349495.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c37349495.filter(chkc) end
......
...@@ -18,7 +18,7 @@ function c38041940.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,7 +18,7 @@ function c38041940.condition(e,tp,eg,ep,ev,re,r,rp)
and c:IsPreviousControler(tp) and c:IsPreviousControler(tp)
end end
function c38041940.spfilter(c,e,tp) function c38041940.spfilter(c,e,tp)
return c:IsLevelBelow(4) and c:IsRace(RACE_PLANT) and c:GetCode()~=38041940 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsRace(RACE_PLANT) and not c:IsCode(38041940) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c38041940.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c38041940.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c38041940.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c38041940.spfilter(chkc,e,tp) end
......
...@@ -17,7 +17,7 @@ function c38495396.initial_effect(c) ...@@ -17,7 +17,7 @@ function c38495396.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c38495396.ovfilter(c) function c38495396.ovfilter(c)
return c:IsFaceup() and c:IsSetCard(0x53) and c:GetCode()~=38495396 and c:IsType(TYPE_XYZ) return c:IsFaceup() and c:IsSetCard(0x53) and not c:IsCode(38495396) and c:IsType(TYPE_XYZ)
end end
function c38495396.xyzop(e,tp,chk) function c38495396.xyzop(e,tp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -15,7 +15,7 @@ function c39432962.initial_effect(c) ...@@ -15,7 +15,7 @@ function c39432962.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c39432962.filter(c,e,tp) function c39432962.filter(c,e,tp)
return c:IsSetCard(0x82) and c:GetCode()~=39432962 return c:IsSetCard(0x82) and not c:IsCode(39432962)
and (c:IsCanBeSpecialSummoned(e,0,tp,false,false) or c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE)) and (c:IsCanBeSpecialSummoned(e,0,tp,false,false) or c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE))
end end
function c39432962.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c39432962.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -16,7 +16,7 @@ function c40320754.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c40320754.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 c40320754.filter(c,e,tp) function c40320754.filter(c,e,tp)
return c:IsRace(RACE_PLANT) and c:GetCode()~=40320754 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_PLANT) and not c:IsCode(40320754) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c40320754.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c40320754.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c40320754.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c40320754.filter(chkc,e,tp) end
......
...@@ -31,7 +31,7 @@ function c40854197.initial_effect(c) ...@@ -31,7 +31,7 @@ function c40854197.initial_effect(c)
end end
c40854197.material_setcode=0x8 c40854197.material_setcode=0x8
function c40854197.atkfilter(c) function c40854197.atkfilter(c)
return c:IsFaceup() and c:GetCode()~=40854197 and c:IsAttribute(ATTRIBUTE_WATER) return c:IsFaceup() and not c:IsCode(40854197) and c:IsAttribute(ATTRIBUTE_WATER)
end end
function c40854197.atkup(e,c) function c40854197.atkup(e,c)
return Duel.GetMatchingGroupCount(c40854197.atkfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)*500 return Duel.GetMatchingGroupCount(c40854197.atkfilter,0,LOCATION_MZONE,LOCATION_MZONE,nil)*500
......
...@@ -23,7 +23,7 @@ function c40991587.initial_effect(c) ...@@ -23,7 +23,7 @@ function c40991587.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c40991587.etarget(e,c) function c40991587.etarget(e,c)
return c:GetCode()~=40991587 and c:IsRace(RACE_ZOMBIE) and c:IsLevelBelow(3) return not c:IsCode(40991587) and c:IsRace(RACE_ZOMBIE) and c:IsLevelBelow(3)
end end
function c40991587.efilter(e,te) function c40991587.efilter(e,te)
return te:IsActiveType(TYPE_SPELL+TYPE_TRAP) and not te:GetHandler():IsCode(4064256) return te:IsActiveType(TYPE_SPELL+TYPE_TRAP) and not te:GetHandler():IsCode(4064256)
......
...@@ -69,7 +69,7 @@ function c42940404.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,7 +69,7 @@ function c42940404.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)
end end
function c42940404.sfilter(c) function c42940404.sfilter(c)
return c:IsSetCard(0x36) and c:GetCode()~=42940404 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x36) and not c:IsCode(42940404) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c42940404.stg(e,tp,eg,ep,ev,re,r,rp,chk) function c42940404.stg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c42940404.sfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c42940404.sfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -25,7 +25,7 @@ function c43378076.initial_effect(c) ...@@ -25,7 +25,7 @@ function c43378076.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c43378076.cfilter(c) function c43378076.cfilter(c)
return c:IsType(TYPE_SPIRIT) and c:GetCode()~=43378076 and not c:IsPublic() return c:IsType(TYPE_SPIRIT) and not c:IsCode(43378076) and not c:IsPublic()
end end
function c43378076.sretcost(e,tp,eg,ep,ev,re,r,rp,chk) function c43378076.sretcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0 if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0
......
...@@ -36,7 +36,7 @@ function c43708041.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -36,7 +36,7 @@ function c43708041.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end end
function c43708041.filter(c) function c43708041.filter(c)
return c:IsSetCard(0x7d) and c:GetCode()~=43708041 and c:IsAbleToHand() return c:IsSetCard(0x7d) and not c:IsCode(43708041) and c:IsAbleToHand()
end end
function c43708041.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c43708041.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c43708041.filter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c43708041.filter(chkc) end
......
...@@ -58,7 +58,7 @@ function c43748308.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -58,7 +58,7 @@ function c43748308.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c43748308.spfilter(c,e,tp) function c43748308.spfilter(c,e,tp)
return c:IsSetCard(0x79) and c:GetCode()~=43748308 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x79) and not c:IsCode(43748308) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c43748308.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c43748308.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c43748308.spfilter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c43748308.spfilter(chkc,e,tp) end
......
...@@ -10,7 +10,7 @@ function c44250812.initial_effect(c) ...@@ -10,7 +10,7 @@ function c44250812.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c44250812.filter(c) function c44250812.filter(c)
return c:IsFaceup() and c:IsSetCard(0x54) and c:GetCode()~=44250812 return c:IsFaceup() and c:IsSetCard(0x54) and not c:IsCode(44250812)
end end
function c44250812.spcon(e,c) function c44250812.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -22,7 +22,7 @@ function c45869829.initial_effect(c) ...@@ -22,7 +22,7 @@ function c45869829.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c45869829.filter(c) function c45869829.filter(c)
return c:IsType(TYPE_QUICKPLAY) and c:GetCode()~=45869829 and c:IsAbleToDeck() return c:IsType(TYPE_QUICKPLAY) and not c:IsCode(45869829) and c:IsAbleToDeck()
end end
function c45869829.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c45869829.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c45869829.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c45869829.filter(chkc) end
...@@ -42,7 +42,7 @@ function c45869829.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c45869829.thcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousControler(tp) return rp==1-tp and c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousControler(tp)
end end
function c45869829.thfilter(c) function c45869829.thfilter(c)
return c:IsType(TYPE_QUICKPLAY) and c:GetCode()~=45869829 and c:IsAbleToHand() return c:IsType(TYPE_QUICKPLAY) and not c:IsCode(45869829) and c:IsAbleToHand()
end end
function c45869829.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c45869829.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c45869829.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c45869829.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -56,7 +56,7 @@ function c46448938.effcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function c46448938.effcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetLabel()>0 return e:GetLabel()>0
end end
function c46448938.sfilter(c) function c46448938.sfilter(c)
return c:IsSetCard(0x106e) and c:GetCode()~=46448938 and c:IsType(TYPE_SPELL) and c:IsAbleToHand() return c:IsSetCard(0x106e) and not c:IsCode(46448938) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
end end
function c46448938.spfilter(c,lv,e,tp) function c46448938.spfilter(c,lv,e,tp)
return c:IsLevelBelow(lv) and c:IsRace(RACE_SPELLCASTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(lv) and c:IsRace(RACE_SPELLCASTER) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -33,7 +33,7 @@ function c47030842.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c47030842.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function c47030842.filter(c) function c47030842.filter(c)
return c:IsSetCard(0x72) and c:GetCode()~=47030842 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x72) and not c:IsCode(47030842) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c47030842.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c47030842.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c47030842.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c47030842.filter(chkc) end
......
...@@ -32,7 +32,7 @@ function c48505422.rlcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c48505422.rlcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function c48505422.filter(c) function c48505422.filter(c)
return c:IsSetCard(0x3d) and c:GetCode()~=48505422 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x3d) and not c:IsCode(48505422) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c48505422.rltg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c48505422.rltg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c48505422.filter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c48505422.filter(chkc) end
......
...@@ -15,7 +15,7 @@ function c49003716.initial_effect(c) ...@@ -15,7 +15,7 @@ function c49003716.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c49003716.filter(c) function c49003716.filter(c)
return c:IsFaceup() and c:IsSetCard(0x33) and c:GetCode()~=49003716 return c:IsFaceup() and c:IsSetCard(0x33) and not c:IsCode(49003716)
end end
function c49003716.spcon(e,c) function c49003716.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -22,7 +22,7 @@ function c49721904.initial_effect(c) ...@@ -22,7 +22,7 @@ function c49721904.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c49721904.spfilter(c) function c49721904.spfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d) and c:GetCode()~=49721904 return c:IsFaceup() and c:IsSetCard(0x3d) and not c:IsCode(49721904)
end end
function c49721904.spcon(e,c) function c49721904.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -53,7 +53,7 @@ function c50088247.spcost2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,7 +53,7 @@ function c50088247.spcost2(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function c50088247.filter(c,e,tp) function c50088247.filter(c,e,tp)
return c:IsSetCard(0x2f) and c:GetCode()~=50088247 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x2f) and not c:IsCode(50088247) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c50088247.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c50088247.sptg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c50088247.filter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c50088247.filter(chkc,e,tp) end
......
...@@ -24,7 +24,7 @@ function c51435705.shcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -24,7 +24,7 @@ function c51435705.shcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_DISCARD+REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_DISCARD+REASON_COST)
end end
function c51435705.filter(c) function c51435705.filter(c)
return c:IsSetCard(0x70) and c:GetCode()~=51435705 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x70) and not c:IsCode(51435705) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c51435705.shtg(e,tp,eg,ep,ev,re,r,rp,chk) function c51435705.shtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c51435705.filter,tp,LOCATION_GRAVE+LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c51435705.filter,tp,LOCATION_GRAVE+LOCATION_DECK,0,1,nil) end
......
...@@ -19,7 +19,7 @@ function c52430902.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -19,7 +19,7 @@ function c52430902.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c52430902.filter1(c) function c52430902.filter1(c)
local tp=c:GetControler() local tp=c:GetControler()
return c:IsFaceup() and c:IsRace(RACE_PSYCHO) and c:GetCode()~=52430902 return c:IsFaceup() and c:IsRace(RACE_PSYCHO) and not c:IsCode(52430902)
and c:IsAbleToChangeControler() and Duel.GetMZoneCount(tp,c,tp,LOCATION_REASON_CONTROL)>0 and c:IsAbleToChangeControler() and Duel.GetMZoneCount(tp,c,tp,LOCATION_REASON_CONTROL)>0
end end
function c52430902.filter2(c) function c52430902.filter2(c)
......
...@@ -12,7 +12,7 @@ function c52823314.initial_effect(c) ...@@ -12,7 +12,7 @@ function c52823314.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c52823314.filter(c) function c52823314.filter(c)
return c:GetCode()~=52823314 and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck() return not c:IsCode(52823314) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
end end
function c52823314.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c52823314.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and c52823314.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and c52823314.filter(chkc) end
......
...@@ -50,7 +50,7 @@ function c53274132.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -50,7 +50,7 @@ function c53274132.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RegisterEffect(e1) e:GetHandler():RegisterEffect(e1)
end end
function c53274132.spfilter(c,e,tp) function c53274132.spfilter(c,e,tp)
return c:IsLevelBelow(4) and c:IsSetCard(0x25) and c:GetCode()~=53274132 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsSetCard(0x25) and not c:IsCode(53274132) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c53274132.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c53274132.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c53274132.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c53274132.spfilter(chkc,e,tp) end
......
...@@ -34,7 +34,7 @@ function c5361647.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,7 +34,7 @@ function c5361647.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_EFFECT) return e:GetHandler():IsReason(REASON_EFFECT)
end end
function c5361647.filter(c) function c5361647.filter(c)
return c:IsSetCard(0x84) and c:GetCode()~=5361647 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x84) and not c:IsCode(5361647) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c5361647.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c5361647.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c5361647.filter(chkc) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c5361647.filter(chkc) end
......
...@@ -15,7 +15,7 @@ function c53921056.initial_effect(c) ...@@ -15,7 +15,7 @@ function c53921056.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c53921056.filter(c,e,tp) function c53921056.filter(c,e,tp)
return c:IsSetCard(0x2f) and c:GetCode()~=53921056 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x2f) and not c:IsCode(53921056) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c53921056.spcon(e,tp,eg,ep,ev,re,r,rp) function c53921056.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
......
...@@ -10,5 +10,5 @@ function c55401221.initial_effect(c) ...@@ -10,5 +10,5 @@ function c55401221.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c55401221.atlimit(e,c) function c55401221.atlimit(e,c)
return c:IsFaceup() and c:IsRace(RACE_THUNDER) and c:GetCode()~=55401221 return c:IsFaceup() and c:IsRace(RACE_THUNDER) and not c:IsCode(55401221)
end end
...@@ -18,7 +18,7 @@ function c56052205.initial_effect(c) ...@@ -18,7 +18,7 @@ function c56052205.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c56052205.cfilter(c) function c56052205.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x12) and c:GetCode()~=56052205 return c:IsFaceup() and c:IsSetCard(0x12) and not c:IsCode(56052205)
end end
function c56052205.condition(e,tp,eg,ep,ev,re,r,rp) function c56052205.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.GetAttackTarget()==nil return ep~=tp and Duel.GetAttackTarget()==nil
......
...@@ -36,7 +36,7 @@ function c56209279.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c56209279.spcon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsDisabled() and Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0 return not e:GetHandler():IsDisabled() and Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)==0
end end
function c56209279.filter(c,e,tp) function c56209279.filter(c,e,tp)
return c:IsSetCard(0xb) and c:GetCode()~=56209279 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0xb) and not c:IsCode(56209279) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c56209279.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c56209279.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c56209279.filter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c56209279.filter(chkc,e,tp) end
......
...@@ -13,7 +13,7 @@ function c57019473.initial_effect(c) ...@@ -13,7 +13,7 @@ function c57019473.initial_effect(c)
end end
function c57019473.filter(c) function c57019473.filter(c)
return c:IsRace(RACE_THUNDER) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLevel(4) return c:IsRace(RACE_THUNDER) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsLevel(4)
and c:GetCode()~=57019473 and c:IsAttackBelow(1600) and c:IsAbleToRemove() and not c:IsCode(57019473) and c:IsAttackBelow(1600) and c:IsAbleToRemove()
end end
function c57019473.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c57019473.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c57019473.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c57019473.filter(chkc) end
......
...@@ -23,10 +23,10 @@ function c57630503.initial_effect(c) ...@@ -23,10 +23,10 @@ function c57630503.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c57630503.dhfilter(c) function c57630503.dhfilter(c)
return c:GetCode()~=57630503 and c:IsSetCard(0x35) and c:IsType(TYPE_MONSTER) and c:IsDiscardable() return not c:IsCode(57630503) and c:IsSetCard(0x35) and c:IsType(TYPE_MONSTER) and c:IsDiscardable()
end end
function c57630503.dhfilter1(c) function c57630503.dhfilter1(c)
return c:GetCode()~=57630503 and c:IsType(TYPE_MONSTER) and c:IsDiscardable() return not c:IsCode(57630503) and c:IsType(TYPE_MONSTER) and c:IsDiscardable()
end end
function c57630503.gselect(g) function c57630503.gselect(g)
return g:IsExists(c57630503.dhfilter,1,nil) return g:IsExists(c57630503.dhfilter,1,nil)
......
...@@ -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,POS_FACEUP_DEFENSE) return c:IsSetCard(0x107a) and not c:IsCode(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
......
...@@ -76,7 +76,7 @@ function c59170782.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +76,7 @@ function c59170782.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY) return e:GetHandler():IsReason(REASON_DESTROY)
end end
function c59170782.spfilter(c,e,tp) function c59170782.spfilter(c,e,tp)
return c:IsSetCard(0x74) and c:GetCode()~=59170782 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x74) and not c:IsCode(59170782) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c59170782.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c59170782.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c59170782.spfilter(chkc,e,tp) end if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c59170782.spfilter(chkc,e,tp) end
......
...@@ -18,7 +18,7 @@ function c60953949.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,7 +18,7 @@ function c60953949.thcon(e,tp,eg,ep,ev,re,r,rp)
and e:GetHandler():IsPreviousLocation(LOCATION_DECK+LOCATION_GRAVE) and e:GetHandler():IsPreviousLocation(LOCATION_DECK+LOCATION_GRAVE)
end end
function c60953949.filter(c) function c60953949.filter(c)
return (c:IsAttack(500) or c:IsDefense(500)) and c:GetCode()~=60953949 return (c:IsAttack(500) or c:IsDefense(500)) and not c:IsCode(60953949)
and c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsAbleToHand() and c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_EARTH) and c:IsAbleToHand()
end end
function c60953949.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c60953949.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -15,7 +15,7 @@ function c60999392.sumcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,7 +15,7 @@ function c60999392.sumcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==1 return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==1
end end
function c60999392.filter(c,e,tp) function c60999392.filter(c,e,tp)
return c:IsSetCard(0x36) and c:GetCode()~=60999392 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x36) and not c:IsCode(60999392) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c60999392.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) function c60999392.sumtg(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 c61592395.initial_effect(c) ...@@ -12,7 +12,7 @@ function c61592395.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c61592395.filter(c) function c61592395.filter(c)
return c:IsFaceup() and c:IsSetCard(0x106e) and c:IsType(TYPE_SPELL) and c:GetCode()~=61592395 and c:IsAbleToHand() return c:IsFaceup() and c:IsSetCard(0x106e) and c:IsType(TYPE_SPELL) and not c:IsCode(61592395) and c:IsAbleToHand()
end end
function c61592395.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c61592395.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c61592395.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c61592395.filter(chkc) end
......
...@@ -58,7 +58,7 @@ function c63487632.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -58,7 +58,7 @@ function c63487632.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c63487632.filter(c) function c63487632.filter(c)
return c:GetCode()~=63487632 and c:IsRace(RACE_DRAGON) and not c:IsForbidden() return not c:IsCode(63487632) and c:IsRace(RACE_DRAGON) and not c:IsForbidden()
end end
function c63487632.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c63487632.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c63487632.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c63487632.filter(chkc) end
......
...@@ -24,7 +24,7 @@ function c64398890.initial_effect(c) ...@@ -24,7 +24,7 @@ function c64398890.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c64398890.cfilter(c) function c64398890.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d) and c:GetCode()~=64398890 return c:IsFaceup() and c:IsSetCard(0x3d) and not c:IsCode(64398890)
end end
function c64398890.descon(e,tp,eg,ep,ev,re,r,rp) function c64398890.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c64398890.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c64398890.cfilter,tp,LOCATION_MZONE,0,1,nil)
......
...@@ -65,7 +65,7 @@ function c64550682.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,7 +65,7 @@ function c64550682.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(c:GetReason(),0x41)==0x41 and re:GetOwner():IsSetCard(0x24) return bit.band(c:GetReason(),0x41)==0x41 and re:GetOwner():IsSetCard(0x24)
end end
function c64550682.filter(c) function c64550682.filter(c)
return c:IsSetCard(0x24) and c:IsType(TYPE_MONSTER) and c:GetCode()~=64550682 and c:IsAbleToHand() return c:IsSetCard(0x24) and c:IsType(TYPE_MONSTER) and not c:IsCode(64550682) and c:IsAbleToHand()
end end
function c64550682.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c64550682.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c64550682.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c64550682.filter(chkc) end
......
...@@ -100,7 +100,7 @@ function c64910482.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -100,7 +100,7 @@ function c64910482.regop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c64910482.filter(c) function c64910482.filter(c)
return c:IsSetCard(0x27) and c:GetCode()~=64910482 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x27) and not c:IsCode(64910482) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c64910482.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c64910482.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c64910482.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c64910482.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -55,7 +55,7 @@ function c65503206.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c65503206.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(c:GetReason(),0x41)==0x41 and re:GetOwner():IsSetCard(0x24) return bit.band(c:GetReason(),0x41)==0x41 and re:GetOwner():IsSetCard(0x24)
end end
function c65503206.filter(c) function c65503206.filter(c)
return c:IsSetCard(0x24) and c:IsType(TYPE_MONSTER) and c:GetCode()~=65503206 and c:IsAbleToHand() return c:IsSetCard(0x24) and c:IsType(TYPE_MONSTER) and not c:IsCode(65503206) and c:IsAbleToHand()
end end
function c65503206.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c65503206.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c65503206.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c65503206.filter(chkc) end
......
...@@ -10,7 +10,7 @@ function c66378485.initial_effect(c) ...@@ -10,7 +10,7 @@ function c66378485.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c66378485.filter(c) function c66378485.filter(c)
return c:IsFaceup() and c:IsSetCard(0x2c) and c:GetCode()~=66378485 return c:IsFaceup() and c:IsSetCard(0x2c) and not c:IsCode(66378485)
end end
function c66378485.spcon(e,c) function c66378485.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -18,7 +18,7 @@ function c66540884.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -18,7 +18,7 @@ function c66540884.thcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_EFFECT) or c:IsReason(REASON_BATTLE) return c:IsReason(REASON_EFFECT) or c:IsReason(REASON_BATTLE)
end end
function c66540884.thfilter(c) function c66540884.thfilter(c)
return c:IsSetCard(0x45) and c:GetCode()~=66540884 and c:IsAbleToHand() return c:IsSetCard(0x45) and not c:IsCode(66540884) and c:IsAbleToHand()
end end
function c66540884.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c66540884.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c66540884.thfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c66540884.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -33,7 +33,7 @@ function c66762372.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c66762372.spcon(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 c66762372.spfilter(c,e,tp) function c66762372.spfilter(c,e,tp)
return c:IsSetCard(0x79) and c:IsLevel(4) and c:GetCode()~=66762372 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x79) and c:IsLevel(4) and not c:IsCode(66762372) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c66762372.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c66762372.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
......
...@@ -20,7 +20,7 @@ function c66853752.initial_effect(c) ...@@ -20,7 +20,7 @@ function c66853752.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c66853752.cfilter(c) function c66853752.cfilter(c)
return c:GetCode()~=66853752 and c:IsType(TYPE_MONSTER) return not c:IsCode(66853752) and c:IsType(TYPE_MONSTER)
end end
function c66853752.condition(e,tp,eg,ep,ev,re,r,rp) function c66853752.condition(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c66853752.cfilter,tp,LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(c66853752.cfilter,tp,LOCATION_GRAVE,0,nil)
......
...@@ -23,7 +23,7 @@ function c67038874.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -23,7 +23,7 @@ function c67038874.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.GetCurrentPhase()==PHASE_MAIN2
end end
function c67038874.filter(c) function c67038874.filter(c)
return c:IsFaceup() and c:IsSetCard(0x24) and c:GetCode()~=67038874 return c:IsFaceup() and c:IsSetCard(0x24) and not c:IsCode(67038874)
end end
function c67038874.target(e,tp,eg,ep,ev,re,r,rp,chk) function c67038874.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(c67038874.filter,tp,LOCATION_MZONE,0,1,nil) if chk==0 then return Duel.IsExistingTarget(c67038874.filter,tp,LOCATION_MZONE,0,1,nil)
......
...@@ -18,7 +18,7 @@ function c67111213.initial_effect(c) ...@@ -18,7 +18,7 @@ function c67111213.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c67111213.filter(c) function c67111213.filter(c)
return c:IsDefenseBelow(1000) and c:IsSetCard(0x3a) and c:IsType(TYPE_MONSTER) and c:GetCode()~=67111213 and c:IsAbleToHand() return c:IsDefenseBelow(1000) and c:IsSetCard(0x3a) and c:IsType(TYPE_MONSTER) and not c:IsCode(67111213) and c:IsAbleToHand()
end end
function c67111213.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c67111213.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(c67111213.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c67111213.filter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -28,7 +28,7 @@ function c6713443.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -28,7 +28,7 @@ function c6713443.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end end
function c6713443.sfilter(c) function c6713443.sfilter(c)
return c:IsSetCard(0x7c) and c:GetCode()~=6713443 and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() return c:IsSetCard(0x7c) and not c:IsCode(6713443) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable()
end end
function c6713443.fselect(g,ft) function c6713443.fselect(g,ft)
local fc=g:FilterCount(Card.IsType,nil,TYPE_FIELD) local fc=g:FilterCount(Card.IsType,nil,TYPE_FIELD)
......
...@@ -65,7 +65,7 @@ function c68184115.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,7 +65,7 @@ function c68184115.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c68184115.cfilter,1,nil,e:GetHandler(),tp) return eg:IsExists(c68184115.cfilter,1,nil,e:GetHandler(),tp)
end end
function c68184115.spfilter(c,e,tp) function c68184115.spfilter(c,e,tp)
return c:IsSetCard(0x56) and c:GetCode()~=68184115 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x56) and not c:IsCode(68184115) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c68184115.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c68184115.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsFaceup() if chk==0 then return e:GetHandler():IsFaceup()
......
...@@ -64,7 +64,7 @@ function c69000994.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function c69000994.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetLabelObject():GetLabel()~=Duel.GetTurnCount() and e:GetHandler():GetFlagEffect(69000994)>0 return e:GetLabelObject():GetLabel()~=Duel.GetTurnCount() and e:GetHandler():GetFlagEffect(69000994)>0
end end
function c69000994.thfilter(c) function c69000994.thfilter(c)
return c:IsSetCard(0x81) and c:GetCode()~=69000994 and c:IsAbleToHand() return c:IsSetCard(0x81) and not c:IsCode(69000994) and c:IsAbleToHand()
end end
function c69000994.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c69000994.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -17,7 +17,7 @@ function c69025477.initial_effect(c) ...@@ -17,7 +17,7 @@ function c69025477.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c69025477.cfilter(c) function c69025477.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d) and c:GetCode()~=69025477 return c:IsFaceup() and c:IsSetCard(0x3d) and not c:IsCode(69025477)
end end
function c69025477.dircon(e) function c69025477.dircon(e)
return Duel.IsExistingMatchingCard(c69025477.cfilter,e:GetHandler():GetControler(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c69025477.cfilter,e:GetHandler():GetControler(),LOCATION_MZONE,0,1,nil)
......
...@@ -35,10 +35,10 @@ function c6924874.initial_effect(c) ...@@ -35,10 +35,10 @@ function c6924874.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c6924874.cfilter(c) function c6924874.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x64) and c:GetCode()~=6924874 return c:IsFaceup() and c:IsSetCard(0x64) and not c:IsCode(6924874)
end end
function c6924874.atlimit(e,c) function c6924874.atlimit(e,c)
return c:IsFaceup() and c:IsSetCard(0x64) and c:GetCode()~=6924874 return c:IsFaceup() and c:IsSetCard(0x64) and not c:IsCode(6924874)
end end
function c6924874.adcon(e) function c6924874.adcon(e)
return Duel.IsExistingMatchingCard(c6924874.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,2,nil) return Duel.IsExistingMatchingCard(c6924874.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,2,nil)
......
...@@ -17,7 +17,7 @@ function c69293721.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c69293721.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DISCARD) and e:GetHandler():IsPreviousLocation(LOCATION_HAND) return e:GetHandler():IsReason(REASON_DISCARD) and e:GetHandler():IsPreviousLocation(LOCATION_HAND)
end end
function c69293721.filter(c,e,tp) function c69293721.filter(c,e,tp)
return c:IsSetCard(0x74) and c:GetCode()~=69293721 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x74) and not c:IsCode(69293721) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c69293721.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c69293721.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c69293721.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c69293721.filter(chkc,e,tp) end
......
...@@ -24,7 +24,7 @@ function c71519605.atcon(e) ...@@ -24,7 +24,7 @@ function c71519605.atcon(e)
return e:GetHandler():IsAttackPos() return e:GetHandler():IsAttackPos()
end end
function c71519605.atlimit(e,c) function c71519605.atlimit(e,c)
return c:IsFacedown() or c:GetCode()~=71519605 return c:IsFacedown() or not c:IsCode(71519605)
end end
function c71519605.condition(e,tp,eg,ep,ev,re,r,rp) function c71519605.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)
......
...@@ -12,7 +12,7 @@ function c72328962.initial_effect(c) ...@@ -12,7 +12,7 @@ function c72328962.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c72328962.costfilter(c) function c72328962.costfilter(c)
return c:GetCode()~=72328962 and c:IsAbleToGraveAsCost() return not c:IsCode(72328962) and c:IsAbleToGraveAsCost()
end end
function c72328962.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c72328962.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c72328962.costfilter,tp,LOCATION_HAND,0,2,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c72328962.costfilter,tp,LOCATION_HAND,0,2,nil) end
......
...@@ -53,5 +53,5 @@ function c73219648.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,5 +53,5 @@ function c73219648.disop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c73219648.atktg(e,c) function c73219648.atktg(e,c)
return c:IsFaceup() and c:IsSetCard(0x45) and c:GetCode()~=73219648 return c:IsFaceup() and c:IsSetCard(0x45) and not c:IsCode(73219648)
end end
...@@ -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,POS_FACEUP_DEFENSE) return c:IsSetCard(0x72) and not c:IsCode(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
......
...@@ -22,7 +22,7 @@ function c73652465.initial_effect(c) ...@@ -22,7 +22,7 @@ function c73652465.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c73652465.filter(c) function c73652465.filter(c)
return c:IsFaceup() and c:IsSetCard(0x33) and c:GetCode()~=73652465 return c:IsFaceup() and c:IsSetCard(0x33) and not c:IsCode(73652465)
end end
function c73652465.spcon(e,c) function c73652465.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -29,7 +29,7 @@ function c75116619.initial_effect(c) ...@@ -29,7 +29,7 @@ function c75116619.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c75116619.cfilter(c) function c75116619.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d) and c:GetCode()~=75116619 return c:IsFaceup() and c:IsSetCard(0x3d) and not c:IsCode(75116619)
end end
function c75116619.thcon(e,tp,eg,ep,ev,re,r,rp) function c75116619.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c75116619.cfilter,tp,LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c75116619.cfilter,tp,LOCATION_MZONE,0,1,nil)
...@@ -60,7 +60,7 @@ function c75116619.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,7 +60,7 @@ function c75116619.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c75116619.vfilter(c) function c75116619.vfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3d) and c:GetCode()~=75116619 return c:IsFaceup() and c:IsSetCard(0x3d) and not c:IsCode(75116619)
end end
function c75116619.valcon(e) function c75116619.valcon(e)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -33,5 +33,5 @@ function c75363626.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,5 +33,5 @@ function c75363626.retop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c75363626.atktg(e,c) function c75363626.atktg(e,c)
return c:IsFaceup() and c:GetCode()~=75363626 and c:IsSetCard(0x71) return c:IsFaceup() and not c:IsCode(75363626) and c:IsSetCard(0x71)
end end
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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