Commit 9d3ea8e6 authored by VanillaSalt's avatar VanillaSalt

fix

parent a2749c38
...@@ -51,4 +51,3 @@ function c11868731.shop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,4 +51,3 @@ function c11868731.shop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
...@@ -54,4 +54,3 @@ function c12324546.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,4 +54,3 @@ function c12324546.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Equip(tp,e:GetHandler(),tc) Duel.Equip(tp,e:GetHandler(),tc)
end end
end end
...@@ -97,4 +97,3 @@ function c1264319.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,4 +97,3 @@ function c1264319.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,c) Duel.ConfirmCards(1-tp,c)
end end
end end
...@@ -84,4 +84,3 @@ function c18096222.daop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,4 +84,3 @@ function c18096222.daop(e,tp,eg,ep,ev,re,r,rp)
tc:EnableDualState() tc:EnableDualState()
end end
end end
...@@ -53,4 +53,3 @@ function c24150026.bpop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,4 +53,3 @@ function c24150026.bpop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(c,POS_FACEUP_DEFENCE) Duel.ChangePosition(c,POS_FACEUP_DEFENCE)
end end
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 not c:IsRace(RACE_MACHINE) return c:IsRace(0xffffff-RACE_MACHINE)
end end
function c24731453.cfilter(c) function c24731453.cfilter(c)
return c:GetSequence()<5 return c:GetSequence()<5
......
...@@ -40,4 +40,3 @@ function c255998.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -40,4 +40,3 @@ function c255998.operation(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end 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 not c:IsRace(RACE_FIEND) return c:IsRace(0xffffff-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)
......
...@@ -43,4 +43,3 @@ function c29095552.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,4 +43,3 @@ function c29095552.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
...@@ -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 not c:IsAttribute(ATTRIBUTE_WIND) return c:IsAttribute(0xff-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
......
...@@ -45,7 +45,7 @@ function c3395226.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -45,7 +45,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 not c:IsAttribute(ATTRIBUTE_LIGHT) return c:IsAttribute(0xff-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)
......
...@@ -65,7 +65,7 @@ function c35629124.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -65,7 +65,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 not c:IsRace(RACE_DRAGON) return c:IsRace(0xffffff-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)
...@@ -76,7 +76,6 @@ function c35629124.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -76,7 +76,6 @@ function c35629124.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end end
function c35629124.spop(e,tp,eg,ep,ev,re,r,rp) function c35629124.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c35629124.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c35629124.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp)
......
...@@ -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 not c:IsRace(RACE_ZOMBIE) return bit.band(sumtp,SUMMON_TYPE_ADVANCE)==SUMMON_TYPE_ADVANCE and c:IsRace(0xffffff-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 not c:IsRace(e:GetLabel()) return c:IsRace(0xffffff-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()
......
...@@ -59,7 +59,6 @@ function c43202238.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,6 @@ function c43202238.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(tg,REASON_EFFECT) Duel.Destroy(tg,REASON_EFFECT)
end end
end end
function c43202238.spcon(e,tp,eg,ep,ev,re,r,rp) function c43202238.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_DESTROY) and c:GetPreviousControler()==tp return c:IsReason(REASON_DESTROY) and c:GetPreviousControler()==tp
......
...@@ -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 not c:IsRace(RACE_PLANT) return c:IsRace(0xffffff-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)
......
...@@ -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 not c:IsRace(RACE_MACHINE) return c:IsRace(0xffffff-RACE_MACHINE)
end end
...@@ -56,4 +56,3 @@ function c48252330.shop(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,4 +56,3 @@ function c48252330.shop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
function c4904633.initial_effect(c) function c4904633.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
......
...@@ -57,4 +57,3 @@ function c52404456.shop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,4 +57,3 @@ function c52404456.shop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
end end
...@@ -69,4 +69,3 @@ function c5817857.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,4 +69,3 @@ function c5817857.desop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c5817857.rfilter,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c5817857.rfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT) Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
end end
...@@ -60,7 +60,7 @@ function c59281922.lvcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -60,7 +60,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 not c:IsRace(RACE_MACHINE) return c:IsRace(0xffffff-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)
......
...@@ -31,4 +31,3 @@ function c60946968.adval(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,4 +31,3 @@ function c60946968.adval(e,tp,eg,ep,ev,re,r,rp)
if a:IsControler(1-tp) and d:IsSetCard(0xc) then c60946968.addown(a,e) end if a:IsControler(1-tp) and d:IsSetCard(0xc) then c60946968.addown(a,e) end
if d:IsControler(1-tp) and a:IsSetCard(0xc) then c60946968.addown(d,e) end if d:IsControler(1-tp) and a:IsSetCard(0xc) then c60946968.addown(d,e) end
end end
...@@ -41,4 +41,3 @@ function c62624486.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,4 +41,3 @@ function c62624486.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
...@@ -52,7 +52,7 @@ function c63193879.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -52,7 +52,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 not c:IsAttribute(ATTRIBUTE_WATER) return c:IsAttribute(0xff-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 not c:IsRace(RACE_MACHINE) return c:IsRace(0xffffff-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)
......
...@@ -45,7 +45,7 @@ function c64319467.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -45,7 +45,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 not c:IsAttribute(ATTRIBUTE_WATER) return c:IsAttribute(0xff-ATTRIBUTE_WATER)
end end
function c64319467.filter(c,e,tp) function c64319467.filter(c,e,tp)
local lv=c:GetLevel() local lv=c:GetLevel()
......
...@@ -53,4 +53,3 @@ function c66331855.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,4 +53,3 @@ function c66331855.op(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT) Duel.Damage(p,d,REASON_EFFECT)
end end
...@@ -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 not c:IsAttribute(ATTRIBUTE_WIND) return c:IsAttribute(0xff-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 not c:IsRace(RACE_BEAST) return c:IsRace(0xffffff-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)
......
...@@ -45,4 +45,3 @@ function c73652465.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,4 +45,3 @@ function c73652465.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangePosition(tc,POS_FACEUP_DEFENCE,POS_FACEDOWN_DEFENCE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK) Duel.ChangePosition(tc,POS_FACEUP_DEFENCE,POS_FACEDOWN_DEFENCE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK)
end end
end end
...@@ -75,4 +75,3 @@ function c7452945.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -75,4 +75,3 @@ function c7452945.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SelectTarget(tp,c7452945.eqfilter2,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c7452945.eqfilter2,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end end
...@@ -28,4 +28,3 @@ function c75105429.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -28,4 +28,3 @@ function c75105429.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(1-tp,1,REASON_EFFECT) Duel.Draw(1-tp,1,REASON_EFFECT)
end end
end end
...@@ -62,4 +62,3 @@ function c79068663.damop(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,4 +62,3 @@ function c79068663.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(p,dam,REASON_EFFECT) Duel.Damage(p,dam,REASON_EFFECT)
end end
end end
...@@ -14,10 +14,10 @@ function c8522996.initial_effect(c) ...@@ -14,10 +14,10 @@ function c8522996.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetCondition(c8522996.con) e2:SetCondition(c8522996.chcon)
e2:SetCost(c8522996.cost) e2:SetCost(c8522996.chcost)
e2:SetTarget(c8522996.tg) e2:SetTarget(c8522996.chtg)
e2:SetOperation(c8522996.op) e2:SetOperation(c8522996.chop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--sum limit --sum limit
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -43,20 +43,20 @@ function c8522996.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,20 +43,20 @@ function c8522996.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(c,1,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(c,1,tp,tp,true,false,POS_FACEUP)
c:TrapMonsterBlock() c:TrapMonsterBlock()
end end
function c8522996.con(e,tp,eg,ep,ev,re,r,rp) function c8522996.chcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1 return e:GetHandler():GetSummonType()==SUMMON_TYPE_SPECIAL+1
end end
function c8522996.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c8522996.chcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD) Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
end end
function c8522996.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c8522996.chtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,0) Duel.Hint(HINT_SELECTMSG,tp,0)
local aat=Duel.AnnounceAttribute(tp,1,0x7f) local aat=Duel.AnnounceAttribute(tp,1,0x7f)
e:SetLabel(aat) e:SetLabel(aat)
end end
function c8522996.op(e,tp,eg,ep,ev,re,r,rp) function c8522996.chop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local att=e:GetLabel() local att=e:GetLabel()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -78,5 +78,5 @@ function c8522996.condition(e,c) ...@@ -78,5 +78,5 @@ function c8522996.condition(e,c)
return c:IsAttribute(e:GetHandler():GetAttribute()) return c:IsAttribute(e:GetHandler():GetAttribute())
end end
function c8522996.splimit(e,c,tp,sumtp,sumpos) function c8522996.splimit(e,c,tp,sumtp,sumpos)
return not c8522996.condition(e,c) return c:IsAttribute(0xff-e:GetHandler():GetAttribute())
end 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 not c:IsAttribute(ATTRIBUTE_FIRE) return c:IsAttribute(0xff-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
......
...@@ -5,7 +5,6 @@ function c89662736.initial_effect(c) ...@@ -5,7 +5,6 @@ function c89662736.initial_effect(c)
e1:SetDescription(aux.Stringid(89662736,0)) e1:SetDescription(aux.Stringid(89662736,0))
e1:SetCategory(CATEGORY_DAMAGE) e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_QUICK_O)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_BE_BATTLE_TARGET) e1:SetCode(EVENT_BE_BATTLE_TARGET)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,89662736) e1:SetCountLimit(1,89662736)
...@@ -23,8 +22,7 @@ function c89662736.nacost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,8 +22,7 @@ function c89662736.nacost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end end
function c89662736.natg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c89662736.natg(e,tp,eg,ep,ev,re,r,rp,chk)
if chkc then return false end
if chk==0 then return Duel.GetAttacker():IsOnField() end if chk==0 then return Duel.GetAttacker():IsOnField() end
local dam=Duel.GetAttacker():GetAttack()/2 local dam=Duel.GetAttacker():GetAttack()/2
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dam) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,dam)
......
...@@ -49,7 +49,6 @@ function c91499077.atop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,6 @@ function c91499077.atop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
end end
function c91499077.cbcon(e,tp,eg,ep,ev,re,r,rp) function c91499077.cbcon(e,tp,eg,ep,ev,re,r,rp)
local bt=eg:GetFirst() local bt=eg:GetFirst()
return r~=REASON_REPLACE and bt~=e:GetHandler() and bt:IsControler(tp) return r~=REASON_REPLACE and bt~=e:GetHandler() and bt:IsControler(tp)
......
...@@ -88,4 +88,3 @@ end ...@@ -88,4 +88,3 @@ end
function c9161357.lpop(e,tp,eg,ep,ev,re,r,rp) function c9161357.lpop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(1-tp,Duel.GetLP(1-tp)/2) Duel.SetLP(1-tp,Duel.GetLP(1-tp)/2)
end end
...@@ -49,7 +49,7 @@ function c92729410.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -49,7 +49,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 not c:IsRace(RACE_BEAST) return c:IsRace(0xffffff-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)
......
...@@ -92,4 +92,3 @@ function c97452817.ctop(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,4 +92,3 @@ function c97452817.ctop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
...@@ -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 not c:IsAttribute(ATTRIBUTE_DARK) return c:IsAttribute(0xff-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