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

update

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