Commit 76943c8e authored by Argon.Sun's avatar Argon.Sun

update

parent dc22d6cf
...@@ -11,5 +11,5 @@ function c10963799.initial_effect(c) ...@@ -11,5 +11,5 @@ function c10963799.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c10963799.sumlimit(e,c,sump,sumtype,sumpos,targetp) function c10963799.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:IsAttribute(0xff-ATTRIBUTE_WATER) return c:GetAttribute()~=ATTRIBUTE_WATER
end end
...@@ -15,7 +15,7 @@ function c12624008.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,7 +15,7 @@ function c12624008.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE) return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end end
function c12624008.filter(c) function c12624008.filter(c)
return (c:IsFacedown() or c:IsAttribute(0xff-ATTRIBUTE_LIGHT)) and c:IsDestructable() return (c:IsFacedown() or c:GetAttribute()~=ATTRIBUTE_LIGHT) and c:IsDestructable()
end end
function c12624008.target(e,tp,eg,ep,ev,re,r,rp,chk) function c12624008.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -15,7 +15,7 @@ function c13846680.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,7 +15,7 @@ function c13846680.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE) return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end end
function c13846680.filter(c) function c13846680.filter(c)
return (c:IsFacedown() or c:IsAttribute(0xff-ATTRIBUTE_FIRE)) and c:IsDestructable() return (c:IsFacedown() or c:GetAttribute()~=ATTRIBUTE_FIRE) and c:IsDestructable()
end end
function c13846680.target(e,tp,eg,ep,ev,re,r,rp,chk) function c13846680.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -11,5 +11,5 @@ function c19740112.initial_effect(c) ...@@ -11,5 +11,5 @@ function c19740112.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c19740112.sumlimit(e,c,sump,sumtype,sumpos,targetp) function c19740112.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:IsAttribute(0xff-ATTRIBUTE_EARTH) return c:GetAttribute()~=ATTRIBUTE_EARTH
end end
...@@ -22,7 +22,7 @@ function c24731453.initial_effect(c) ...@@ -22,7 +22,7 @@ function c24731453.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c24731453.splimit(e,c) function c24731453.splimit(e,c)
return c:IsRace(0xffffff-RACE_MACHINE) return c:GetRace()~=RACE_MACHINE
end end
function c24731453.cfilter(c) function c24731453.cfilter(c)
return c:GetSequence()<5 return c:GetSequence()<5
......
...@@ -20,7 +20,7 @@ function c28290705.adcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -20,7 +20,7 @@ function c28290705.adcost(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 c28290705.filter(c) function c28290705.filter(c)
return c:IsFaceup() and c:IsAttribute(0xffff-ATTRIBUTE_EARTH) return c:IsFaceup() and c:GetAttribute()~=ATTRIBUTE_EARTH
end end
function c28290705.adtg(e,tp,eg,ep,ev,re,r,rp,chk) function c28290705.adtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c28290705.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c28290705.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
......
...@@ -61,7 +61,7 @@ function c28423537.ntop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -61,7 +61,7 @@ function c28423537.ntop(e,tp,eg,ep,ev,re,r,rp,c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c28423537.splimit(e,c,tp,sumtp,sumpos) function c28423537.splimit(e,c,tp,sumtp,sumpos)
return c:IsRace(0xffffff-RACE_FIEND) return c:GetRace()~=RACE_FIEND
end end
function c28423537.tgop(e,tp,eg,ep,ev,re,r,rp) function c28423537.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT) Duel.Destroy(e:GetHandler(),REASON_EFFECT)
......
...@@ -61,7 +61,7 @@ function c31480215.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -61,7 +61,7 @@ function c31480215.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c31480215.splimit(e,c,tp,sumtp,sumpos) function c31480215.splimit(e,c,tp,sumtp,sumpos)
return c:IsAttribute(0xff-ATTRIBUTE_WIND) return c:GetAttribute()~=ATTRIBUTE_WIND
end end
function c31480215.lvcost(e,tp,eg,ep,ev,re,r,rp,chk) function c31480215.lvcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,e:GetHandler(),0x101b) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,e:GetHandler(),0x101b) end
......
...@@ -28,7 +28,7 @@ function c3395226.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -28,7 +28,7 @@ function c3395226.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c3395226.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c3395226.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsAttribute(0xff-ATTRIBUTE_LIGHT) return c:GetAttribute()~=ATTRIBUTE_LIGHT
end end
function c3395226.filter(c,e,tp) function c3395226.filter(c,e,tp)
return c:IsRace(RACE_FAIRY) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_FAIRY) and c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -41,7 +41,7 @@ function c35629124.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -41,7 +41,7 @@ function c35629124.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function c35629124.sumlimit(e,c) function c35629124.sumlimit(e,c)
return c:IsRace(0xffffff-RACE_DRAGON) return c:GetRace()~=RACE_DRAGON
end end
function c35629124.filter(c,e,tp) function c35629124.filter(c,e,tp)
return c:IsRace(RACE_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -29,7 +29,7 @@ function c39853199.initial_effect(c) ...@@ -29,7 +29,7 @@ function c39853199.initial_effect(c)
end end
function c39853199.destg1(e,tp,eg,ep,ev,re,r,rp,chk) function c39853199.destg1(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=e:GetHandler():GetBattleTarget() local tc=e:GetHandler():GetBattleTarget()
if chk==0 then return tc and tc:IsFaceup() and tc:IsAttribute(0xff-ATTRIBUTE_WIND) end if chk==0 then return tc and tc:IsFaceup() and tc:GetAttribute()~=ATTRIBUTE_WIND end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,tc,1,0,0)
end end
function c39853199.desop1(e,tp,eg,ep,ev,re,r,rp) function c39853199.desop1(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -27,5 +27,5 @@ function c4064256.initial_effect(c) ...@@ -27,5 +27,5 @@ function c4064256.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c4064256.sumlimit(e,c,tp,sumtp) function c4064256.sumlimit(e,c,tp,sumtp)
return bit.band(sumtp,SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and c:IsRace(0xffffff-RACE_ZOMBIE) return bit.band(sumtp,SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and c:GetRace()~=RACE_ZOMBIE
end end
...@@ -57,7 +57,7 @@ function c42155488.dectg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -57,7 +57,7 @@ function c42155488.dectg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function c42155488.sumlimit(e,c) function c42155488.sumlimit(e,c)
return c:IsRace(0xffffff-e:GetLabel()) return c:GetRace()~=e:GetLabel()
end end
function c42155488.decop(e,tp,eg,ep,ev,re,r,rp,chk) function c42155488.decop(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -18,7 +18,7 @@ function c45500495.initial_effect(c) ...@@ -18,7 +18,7 @@ function c45500495.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c45500495.sumtg(e,c) function c45500495.sumtg(e,c)
return c:IsRace(0xffffff-RACE_PLANT) return c:GetRace()~=RACE_PLANT
end end
function c45500495.ccost(e,c,tp) function c45500495.ccost(e,c,tp)
return Duel.CheckLPCost(tp,1000) return Duel.CheckLPCost(tp,1000)
......
...@@ -11,5 +11,5 @@ function c46145256.initial_effect(c) ...@@ -11,5 +11,5 @@ function c46145256.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c46145256.sumlimit(e,c,sump,sumtype,sumpos,targetp) function c46145256.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:IsAttribute(0xff-ATTRIBUTE_LIGHT) return c:GetAttribute()~=ATTRIBUTE_LIGHT
end end
...@@ -41,5 +41,5 @@ function c47687766.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,5 +41,5 @@ function c47687766.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function c47687766.splimit(e,c) function c47687766.splimit(e,c)
return c:IsRace(0xffffff-RACE_MACHINE) return c:GetRace()~=RACE_MACHINE
end end
...@@ -11,5 +11,5 @@ function c47961808.initial_effect(c) ...@@ -11,5 +11,5 @@ function c47961808.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c47961808.sumlimit(e,c,sump,sumtype,sumpos,targetp) function c47961808.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:IsAttribute(0xff-ATTRIBUTE_FIRE) return c:GetAttribute()~=ATTRIBUTE_FIRE
end end
...@@ -53,7 +53,7 @@ function c48210156.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function c48210156.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c48210156.splimit(e,c) function c48210156.splimit(e,c)
return c:IsRace(0xffffff-RACE_FIEND) return c:GetRace()~=RACE_FIEND
end end
function c48210156.damop(e,tp,eg,ep,ev,re,r,rp) function c48210156.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(e:GetLabel(),1000,REASON_EFFECT) Duel.Damage(e:GetLabel(),1000,REASON_EFFECT)
......
...@@ -15,7 +15,7 @@ function c50957346.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,7 +15,7 @@ function c50957346.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 c50957346.filter(c) function c50957346.filter(c)
return (c:IsFacedown() or c:IsAttribute(0xff-ATTRIBUTE_EARTH)) and c:IsDestructable() return (c:IsFacedown() or c:GetAttribute()~=ATTRIBUTE_EARTH) and c:IsDestructable()
end end
function c50957346.target(e,tp,eg,ep,ev,re,r,rp,chk) function c50957346.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -53,7 +53,7 @@ function c53334471.sumlimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -53,7 +53,7 @@ function c53334471.sumlimit(e,c,sump,sumtype,sumpos,targetp)
local at=c53334471[sump] local at=c53334471[sump]
if targetp then at=c53334471[targetp] end if targetp then at=c53334471[targetp] end
if at==0 then return false end if at==0 then return false end
return c:IsAttribute(0xff-at) return c:GetAttribute()~=at
end end
function c53334471.getattribute(g) function c53334471.getattribute(g)
local aat=0 local aat=0
...@@ -65,7 +65,7 @@ function c53334471.getattribute(g) ...@@ -65,7 +65,7 @@ function c53334471.getattribute(g)
return aat return aat
end end
function c53334471.rmfilter(c,at) function c53334471.rmfilter(c,at)
return not c:IsAttribute(0xff-at) return not c:GetAttribute()~=at
end end
function c53334471.adjustop(e,tp,eg,ep,ev,re,r,rp) function c53334471.adjustop(e,tp,eg,ep,ev,re,r,rp)
local phase=Duel.GetCurrentPhase() local phase=Duel.GetCurrentPhase()
......
...@@ -15,7 +15,7 @@ function c59235795.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,7 +15,7 @@ function c59235795.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 c59235795.filter(c) function c59235795.filter(c)
return (c:IsFacedown() or c:IsAttribute(0xff-ATTRIBUTE_WIND)) and c:IsDestructable() return (c:IsFacedown() or c:GetAttribute()~=ATTRIBUTE_WIND) and c:IsDestructable()
end end
function c59235795.target(e,tp,eg,ep,ev,re,r,rp,chk) function c59235795.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -43,7 +43,7 @@ function c59281922.lvcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -43,7 +43,7 @@ function c59281922.lvcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c59281922.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c59281922.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsRace(0xffffff-RACE_MACHINE) return c:GetRace()~=RACE_MACHINE
end end
function c59281922.filter(c) function c59281922.filter(c)
return c:IsFaceup() and c:IsCode(70095154) return c:IsFaceup() and c:IsCode(70095154)
......
...@@ -27,7 +27,7 @@ function c60530944.getattr(g) ...@@ -27,7 +27,7 @@ function c60530944.getattr(g)
return aat return aat
end end
function c60530944.rmfilter(c,at) function c60530944.rmfilter(c,at)
return not c:IsAttribute(0xff-at) return not c:GetAttribute()~=at
end end
function c60530944.operation(e,tp,eg,ep,ev,re,r,rp) function c60530944.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 if Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
......
...@@ -35,7 +35,7 @@ function c63193879.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,7 +35,7 @@ function c63193879.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c63193879.splimit(e,c) function c63193879.splimit(e,c)
return c:IsAttribute(0xff-ATTRIBUTE_WATER) return c:GetAttribute()~=ATTRIBUTE_WATER
end end
function c63193879.filter(c) function c63193879.filter(c)
return c:IsFaceup() and c:IsRace(RACE_FISH) and c:GetLevel()>0 return c:IsFaceup() and c:IsRace(RACE_FISH) and c:GetLevel()>0
......
...@@ -45,7 +45,7 @@ function c63881033.initial_effect(c) ...@@ -45,7 +45,7 @@ function c63881033.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c63881033.splimit(e,c) function c63881033.splimit(e,c)
return c:IsRace(0xffffff-RACE_MACHINE) return c:GetRace()~=RACE_MACHINE
end end
function c63881033.filter(c) function c63881033.filter(c)
return c:IsFaceup() and c:IsLevelAbove(5) and c:IsRace(RACE_MACHINE) return c:IsFaceup() and c:IsLevelAbove(5) and c:IsRace(RACE_MACHINE)
......
...@@ -28,7 +28,7 @@ function c64319467.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -28,7 +28,7 @@ function c64319467.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c64319467.splimit(e,c) function c64319467.splimit(e,c)
return c:IsAttribute(0xff-ATTRIBUTE_WATER) return c:GetAttribute()~=ATTRIBUTE_WATER
end end
function c64319467.filter(c,e,tp) function c64319467.filter(c,e,tp)
local lv=c:GetLevel() local lv=c:GetLevel()
......
...@@ -10,7 +10,7 @@ function c70797118.initial_effect(c) ...@@ -10,7 +10,7 @@ function c70797118.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c70797118.sdfilter(c) function c70797118.sdfilter(c)
return c:IsFaceup() and c:IsAttribute(0xff-ATTRIBUTE_LIGHT) return c:IsFaceup() and c:GetAttribute()~=ATTRIBUTE_LIGHT
end end
function c70797118.sdcon(e) function c70797118.sdcon(e)
return Duel.IsExistingMatchingCard(c70797118.sdfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c70797118.sdfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
......
...@@ -52,5 +52,5 @@ function c71175527.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,5 +52,5 @@ function c71175527.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c71175527.splimit(e,c,tp,sumtp,sumpos) function c71175527.splimit(e,c,tp,sumtp,sumpos)
return c:IsAttribute(0xff-ATTRIBUTE_WIND) return c:GetAttribute()~=ATTRIBUTE_WIND
end end
...@@ -26,7 +26,7 @@ function c72537897.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -26,7 +26,7 @@ function c72537897.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c72537897.splimit(e,c) function c72537897.splimit(e,c)
return c:IsRace(0xffffff-RACE_BEAST) return c:GetRace()~=RACE_BEAST
end end
function c72537897.spfilter(c,e,tp) function c72537897.spfilter(c,e,tp)
return c:IsRace(RACE_BEAST) and c:IsLevelBelow(2) and c:IsType(TYPE_EFFECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_BEAST) and c:IsLevelBelow(2) and c:IsType(TYPE_EFFECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -11,5 +11,5 @@ function c73356503.initial_effect(c) ...@@ -11,5 +11,5 @@ function c73356503.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c73356503.sumlimit(e,c,sump,sumtype,sumpos,targetp) function c73356503.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:IsAttribute(0xff-ATTRIBUTE_WIND) return c:GetAttribute()~=ATTRIBUTE_WIND
end end
...@@ -11,5 +11,5 @@ function c84478195.initial_effect(c) ...@@ -11,5 +11,5 @@ function c84478195.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c84478195.sumlimit(e,c,sump,sumtype,sumpos,targetp) function c84478195.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:IsAttribute(0xff-ATTRIBUTE_DARK) return c:GetAttribute()~=ATTRIBUTE_DARK
end end
...@@ -15,7 +15,7 @@ function c86229493.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,7 +15,7 @@ function c86229493.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 c86229493.filter(c) function c86229493.filter(c)
return (c:IsFacedown() or c:IsAttribute(0xff-ATTRIBUTE_DARK)) and c:IsDestructable() return (c:IsFacedown() or c:GetAttribute()~=ATTRIBUTE_DARK) and c:IsDestructable()
end end
function c86229493.target(e,tp,eg,ep,ev,re,r,rp,chk) function c86229493.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -15,7 +15,7 @@ function c86442081.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,7 +15,7 @@ function c86442081.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 c86442081.filter(c) function c86442081.filter(c)
return (c:IsFacedown() or c:IsAttribute(0xff-ATTRIBUTE_WATER)) and c:IsDestructable() return (c:IsFacedown() or c:GetAttribute()~=ATTRIBUTE_WATER) and c:IsDestructable()
end end
function c86442081.target(e,tp,eg,ep,ev,re,r,rp,chk) function c86442081.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -29,7 +29,7 @@ function c8696773.tgvalue(e,re,rp) ...@@ -29,7 +29,7 @@ function c8696773.tgvalue(e,re,rp)
return rp~=e:GetHandlerPlayer() return rp~=e:GetHandlerPlayer()
end end
function c8696773.splimit(e,c,tp,sumtp,sumpos) function c8696773.splimit(e,c,tp,sumtp,sumpos)
return c:IsAttribute(0xff-ATTRIBUTE_FIRE) return c:GetAttribute()~=ATTRIBUTE_FIRE
end end
function c8696773.effcon(e,tp,eg,ep,ev,re,r,rp) function c8696773.effcon(e,tp,eg,ep,ev,re,r,rp)
return r==REASON_XYZ return r==REASON_XYZ
......
...@@ -53,7 +53,7 @@ function c90846359.sumlimit(e,c,sump,sumtype,sumpos,targetp) ...@@ -53,7 +53,7 @@ function c90846359.sumlimit(e,c,sump,sumtype,sumpos,targetp)
local rc=c90846359[sump] local rc=c90846359[sump]
if targetp then rc=c90846359[targetp] end if targetp then rc=c90846359[targetp] end
if rc==0 then return false end if rc==0 then return false end
return c:IsRace(0xffffff-rc) return c:GetRace()~=rc
end end
function c90846359.getrace(g) function c90846359.getrace(g)
local arc=0 local arc=0
...@@ -65,7 +65,7 @@ function c90846359.getrace(g) ...@@ -65,7 +65,7 @@ function c90846359.getrace(g)
return arc return arc
end end
function c90846359.rmfilter(c,rc) function c90846359.rmfilter(c,rc)
return not c:IsRace(0xffffff-rc) return c:GetRace()==rc
end end
function c90846359.adjustop(e,tp,eg,ep,ev,re,r,rp) function c90846359.adjustop(e,tp,eg,ep,ev,re,r,rp)
local phase=Duel.GetCurrentPhase() local phase=Duel.GetCurrentPhase()
......
...@@ -27,7 +27,7 @@ function c92729410.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,7 +27,7 @@ function c92729410.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c92729410.splimit(e,c) function c92729410.splimit(e,c)
return c:IsRace(0xffffff-RACE_BEAST) return c:GetRace()~=RACE_BEAST
end end
function c92729410.filter(c,e,tp) function c92729410.filter(c,e,tp)
return c:GetCode()~=92729410 and c:GetLevel()==2 and c:IsRace(RACE_BEAST) return c:GetCode()~=92729410 and c:GetLevel()==2 and c:IsRace(RACE_BEAST)
......
...@@ -34,7 +34,7 @@ function c97584500.initial_effect(c) ...@@ -34,7 +34,7 @@ function c97584500.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c97584500.splimit(e,c,tp,sumtp,sumpos) function c97584500.splimit(e,c,tp,sumtp,sumpos)
return c:IsAttribute(0xff-ATTRIBUTE_DARK) return c:GetAttribute()~=ATTRIBUTE_DARK
end end
function c97584500.sfilter(c) function c97584500.sfilter(c)
return c:IsFaceup() and c:IsSetCard(0x8d) return c:IsFaceup() and c:IsSetCard(0x8d)
......
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