Commit 73e1b5d2 authored by VanillaSalt's avatar VanillaSalt

counter

parent 2f46959e
......@@ -35,7 +35,7 @@ function c11501629.ctfilter(c,tp)
end
function c11501629.ctcon(e,tp,eg,ep,ev,re,r,rp)
local ct=eg:FilterCount(c11501629.ctfilter,nil,tp)
if ct>0 and e:GetHandler():IsCanAddCounter(0x2d,ct) then
if ct>0 and e:GetHandler():IsCanAddCounter(0x2d+COUNTER_NEED_ENABLE,ct) then
e:SetLabel(ct)
return true
else
......@@ -43,7 +43,7 @@ function c11501629.ctcon(e,tp,eg,ep,ev,re,r,rp)
end
end
function c11501629.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x2d,e:GetLabel())
e:GetHandler():AddCounter(0x2d+COUNTER_NEED_ENABLE,e:GetLabel())
end
function c11501629.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_STANDBY
......
......@@ -27,7 +27,7 @@ function c11741041.initial_effect(c)
end
function c11741041.ctop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetAttacker():IsControler(tp) then
e:GetHandler():AddCounter(0xc,1)
e:GetHandler():AddCounter(0xc+COUNTER_NEED_ENABLE,1)
end
end
function c11741041.descon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -24,7 +24,7 @@ function c13478040.cfilter(c,tp)
end
function c13478040.ctop(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(c13478040.cfilter,1,nil,1-tp) then
e:GetHandler():AddCounter(0x17,1)
e:GetHandler():AddCounter(0x17+COUNTER_NEED_ENABLE,1)
end
end
function c13478040.descost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -40,7 +40,7 @@ function c14148099.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c14148099.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x1f,3)
e:GetHandler():AddCounter(0x1f+COUNTER_NEED_ENABLE,3)
end
end
function c14148099.rctcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -30,7 +30,7 @@ end
function c14306092.ctop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then
c:AddCounter(0x2e,1)
c:AddCounter(0x2e+COUNTER_NEED_ENABLE,1)
end
end
function c14306092.atkcon(e)
......
......@@ -41,7 +41,7 @@ function c15317640.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c15317640.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x1f,2)
e:GetHandler():AddCounter(0x1f+COUNTER_NEED_ENABLE,2)
end
end
function c15317640.rctcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -57,7 +57,7 @@ function c17601919.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c17601919.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x2f,1)
e:GetHandler():AddCounter(0x2f+COUNTER_NEED_ENABLE,1)
end
end
function c17601919.adval(e,c)
......
......@@ -40,7 +40,7 @@ end
function c20630765.ctop(e,tp,eg,ep,ev,re,r,rp)
local c=re:GetHandler()
if re:IsActiveType(TYPE_MONSTER) and c~=e:GetHandler() and e:GetHandler():GetFlagEffect(1)>0 then
e:GetHandler():AddCounter(0x16,1)
e:GetHandler():AddCounter(0x16+COUNTER_NEED_ENABLE,1)
end
end
function c20630765.defup(e,c)
......
......@@ -51,7 +51,7 @@ function c22790789.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c22790789.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x1f,3)
e:GetHandler():AddCounter(0x1f+COUNTER_NEED_ENABLE,3)
end
end
function c22790789.rctcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -25,7 +25,7 @@ function c23740893.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST)
end
function c23740893.filter(c)
return c:IsFaceup() and c:IsCode(27918963) and c:IsCanAddCounter(0x33,3)
return c:IsFaceup() and c:IsCode(27918963) and c:IsCanAddCounter(0x33+COUNTER_NEED_ENABLE,3)
end
function c23740893.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsOnField() and c23740893.filter(chkc) end
......@@ -37,7 +37,7 @@ end
function c23740893.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then
tc:AddCounter(0x33,3)
tc:AddCounter(0x33+COUNTER_NEED_ENABLE,3)
end
end
function c23740893.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -42,7 +42,7 @@ function c25518020.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c25518020.ctfilter,1,nil)
end
function c25518020.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x1d,2)
e:GetHandler():AddCounter(0x1d+COUNTER_NEED_ENABLE,2)
end
function c25518020.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
......
......@@ -44,7 +44,7 @@ function c26493435.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c26493435.ctfilter,1,nil,tp)
end
function c26493435.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x30,1)
e:GetHandler():AddCounter(0x30+COUNTER_NEED_ENABLE,1)
end
function c26493435.val(e,c)
return e:GetHandler():GetCounter(0x30)*200
......
......@@ -34,7 +34,7 @@ function c27918963.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c27918963.cfilter,1,nil)
end
function c27918963.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x33,1)
e:GetHandler():AddCounter(0x33+COUNTER_NEED_ENABLE,1)
end
function c27918963.filter1(c)
return c:IsFaceup() and c:IsSetCard(0xb3)
......
......@@ -35,7 +35,7 @@ function c33695750.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c33695750.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x27,2)
e:GetHandler():AddCounter(0x27+COUNTER_NEED_ENABLE,2)
end
end
function c33695750.attackup(e,c)
......
......@@ -26,7 +26,7 @@ function c33904024.initial_effect(c)
end
function c33904024.ctop(e,tp,eg,ep,ev,re,r,rp)
if ep==tp and r==REASON_RULE then
e:GetHandler():AddCounter(0xd,1)
e:GetHandler():AddCounter(0xd+COUNTER_NEED_ENABLE,1)
end
end
function c33904024.drcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -19,10 +19,10 @@ end
function c35787450.addc(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFieldCard(tp,LOCATION_SZONE,5)
if tc and tc:IsFaceup() and tc:IsCode(75041269) then
tc:AddCounter(0x1b,2)
tc:AddCounter(0x1b+COUNTER_NEED_ENABLE,2)
end
tc=Duel.GetFieldCard(1-tp,LOCATION_SZONE,5)
if tc and tc:IsFaceup() and tc:IsCode(75041269) then
tc:AddCounter(0x1b,2)
tc:AddCounter(0x1b+COUNTER_NEED_ENABLE,2)
end
end
......@@ -39,7 +39,7 @@ function c36099620.cfilter(c,tp)
end
function c36099620.acop(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(c36099620.cfilter,1,nil,tp) then
e:GetHandler():AddCounter(0x5,1)
e:GetHandler():AddCounter(0x5+COUNTER_NEED_ENABLE,1)
end
end
function c36099620.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -23,11 +23,11 @@ end
function c36625827.addc(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFieldCard(tp,LOCATION_SZONE,5)
if tc and tc:IsFaceup() and tc:IsCode(75041269) then
tc:AddCounter(0x1b,1)
tc:AddCounter(0x1b+COUNTER_NEED_ENABLE,1)
end
tc=Duel.GetFieldCard(1-tp,LOCATION_SZONE,5)
if tc and tc:IsFaceup() and tc:IsCode(75041269) then
tc:AddCounter(0x1b,1)
tc:AddCounter(0x1b+COUNTER_NEED_ENABLE,1)
end
end
function c36625827.descon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -33,7 +33,7 @@ function c39892082.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c39892082.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x29,1)
e:GetHandler():AddCounter(0x29+COUNTER_NEED_ENABLE,1)
end
end
function c39892082.damcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -26,7 +26,7 @@ function c4404099.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c4404099.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x23,1)
e:GetHandler():AddCounter(0x23+COUNTER_NEED_ENABLE,1)
end
end
function c4404099.atkcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -52,7 +52,7 @@ function c44954628.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c44954628.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x1f,3)
e:GetHandler():AddCounter(0x1f+COUNTER_NEED_ENABLE,3)
end
end
function c44954628.rctcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -38,7 +38,7 @@ function c4694209.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c4694209.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x21,1)
e:GetHandler():AddCounter(0x21+COUNTER_NEED_ENABLE,1)
end
end
function c4694209.attackup(e,c)
......
......@@ -40,7 +40,7 @@ function c47408488.eqcon(e,tp,eg,ep,ev,re,r,rp)
return tc:IsFaceup() and tc:IsSetCard(0x1034)
end
function c47408488.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x6,1)
e:GetHandler():AddCounter(0x6+COUNTER_NEED_ENABLE,1)
end
function c47408488.plcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
......
......@@ -46,7 +46,7 @@ function c52518793.accon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c52518793.cfilter,1,nil,tp)
end
function c52518793.acop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x7,1)
e:GetHandler():AddCounter(0x7+COUNTER_NEED_ENABLE,1)
end
function c52518793.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not e:GetHandler():IsReason(REASON_RULE)
......
......@@ -73,7 +73,7 @@ function c52665542.accon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c52665542.cfilter,1,nil,tp)
end
function c52665542.acop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x5,1)
e:GetHandler():AddCounter(0x5+COUNTER_NEED_ENABLE,1)
end
function c52665542.dfilter(c,tp)
return c:IsFaceup() and c:IsLocation(LOCATION_ONFIELD)
......
......@@ -46,7 +46,7 @@ function c56074358.accon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c56074358.cfilter,1,nil)
end
function c56074358.acop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x8,1)
e:GetHandler():AddCounter(0x8+COUNTER_NEED_ENABLE,1)
end
function c56074358.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -39,7 +39,7 @@ end
function c56111151.counter(e,tp,eg,ep,ev,re,r,rp)
local ct=eg:FilterCount(c56111151.cfilter,nil)
if ct>0 then
e:GetHandler():AddCounter(0x37,ct)
e:GetHandler():AddCounter(0x37+COUNTER_NEED_ENABLE,ct)
end
end
function c56111151.thfilter(c)
......
......@@ -47,7 +47,7 @@ function c57543573.accon3(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c57543573.filter3,1,nil,tp)
end
function c57543573.acop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0xf,1)
e:GetHandler():AddCounter(0xf+COUNTER_NEED_ENABLE,1)
end
function c57543573.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0xf,2,REASON_COST) end
......
......@@ -15,7 +15,7 @@ function c5914184.actop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
local ct=math.floor(ev/1000)
c:AddCounter(0x1a,ct)
c:AddCounter(0x1a+COUNTER_NEED_ENABLE,ct)
--damage
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(5914184,0))
......
......@@ -54,7 +54,7 @@ function c5973663.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c5973663.ctfilter,1,nil)
end
function c5973663.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x18,1)
e:GetHandler():AddCounter(0x18+COUNTER_NEED_ENABLE,1)
end
function c5973663.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0x18,1,REASON_COST) end
......
......@@ -31,7 +31,7 @@ end
function c61156777.ctop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
c:AddCounter(0x34,1)
c:AddCounter(0x34+COUNTER_NEED_ENABLE,1)
end
end
function c61156777.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -30,7 +30,7 @@ function c63259351.ctfilter(c,tp)
end
function c63259351.ctop(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(c63259351.ctfilter,1,nil,tp) then
e:GetHandler():AddCounter(0x14,2)
e:GetHandler():AddCounter(0x14+COUNTER_NEED_ENABLE,2)
end
end
function c63259351.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -22,7 +22,7 @@ function c64163367.initial_effect(c)
c:RegisterEffect(e2)
end
function c64163367.ctop1(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0xe,1)
e:GetHandler():AddCounter(0xe+COUNTER_NEED_ENABLE,1)
end
function c64163367.ctcon2(e,tp,eg,ep,ev,re,r,rp)
local ct=e:GetHandler():GetCounter(0xe)
......
......@@ -42,7 +42,7 @@ end
function c67234805.ctop(e,tp,eg,ep,ev,re,r,rp)
local c=re:GetHandler()
if c:IsType(TYPE_MONSTER) then
e:GetHandler():AddCounter(0x16,1)
e:GetHandler():AddCounter(0x16+COUNTER_NEED_ENABLE,1)
end
end
function c67234805.discon(e)
......
......@@ -32,7 +32,7 @@ end
function c71071546.ctop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then
c:AddCounter(0x2c,1)
c:AddCounter(0x2c+COUNTER_NEED_ENABLE,1)
end
end
function c71071546.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -32,7 +32,7 @@ function c7200041.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c7200041.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x26,2)
e:GetHandler():AddCounter(0x26+COUNTER_NEED_ENABLE,2)
end
end
function c7200041.attackup(e,c)
......
......@@ -36,7 +36,7 @@ function c74329404.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c74329404.ctfilter,1,nil,tp)
end
function c74329404.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x1c,1)
e:GetHandler():AddCounter(0x1c+COUNTER_NEED_ENABLE,1)
end
function c74329404.thcon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
......
......@@ -75,7 +75,7 @@ function c74402414.activate(e,tp,eg,ep,ev,re,r,rp)
end
function c74402414.ctop(e,tp,eg,ep,ev,re,r,rp)
if rp~=tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) and e:GetHandler():GetFlagEffect(1)>0 then
e:GetHandler():AddCounter(0x25,1)
e:GetHandler():AddCounter(0x25+COUNTER_NEED_ENABLE,1)
end
end
function c74402414.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -43,7 +43,7 @@ function c75041269.ctcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp
end
function c75041269.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x1b,1)
e:GetHandler():AddCounter(0x1b+COUNTER_NEED_ENABLE,1)
end
function c75041269.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -36,7 +36,7 @@ function c75304793.ctcon(e,tp,eg,ep,ev,re,r,rp)
return re and re:GetHandler():IsSetCard(0x1066) and not re:IsHasType(EFFECT_TYPE_ACTIVATE)
end
function c75304793.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x35,1)
e:GetHandler():AddCounter(0x35+COUNTER_NEED_ENABLE,1)
end
function c75304793.atkval(e,c)
return e:GetHandler():GetCounter(0x35)*100
......
......@@ -48,7 +48,7 @@ function c75937826.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c75937826.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x1f,3)
e:GetHandler():AddCounter(0x1f+COUNTER_NEED_ENABLE,3)
end
end
function c75937826.rctcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -23,7 +23,7 @@ function c78009994.initial_effect(c)
end
function c78009994.ctop(e,tp,eg,ep,ev,re,r,rp)
if eg:GetFirst()~=e:GetHandler() then
e:GetHandler():AddCounter(0x22,1)
e:GetHandler():AddCounter(0x22+COUNTER_NEED_ENABLE,1)
end
end
function c78009994.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -40,6 +40,6 @@ end
function c78574395.operation(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then
c:AddCounter(0x32,e:GetLabel())
c:AddCounter(0x32+COUNTER_NEED_ENABLE,e:GetLabel())
end
end
......@@ -81,7 +81,7 @@ function c8062132.ctcon(e,tp,eg,ep,ev,re,r,rp)
end
function c8062132.ctop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
c:AddCounter(0x11,1)
c:AddCounter(0x11+COUNTER_NEED_ENABLE,1)
if c:GetCounter(0x11)>=3 then
Duel.Win(tp,0x12)
end
......
......@@ -66,7 +66,7 @@ function c81057455.posop(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.ChangePosition(tc,POS_FACEDOWN_DEFENCE)~=0 then
e:GetHandler():AddCounter(0x37,1)
e:GetHandler():AddCounter(0x37+COUNTER_NEED_ENABLE,1)
end
end
function c81057455.drcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -40,7 +40,7 @@ function c81524977.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c81524977.ctfilter,1,nil)
end
function c81524977.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x20,1)
e:GetHandler():AddCounter(0x20+COUNTER_NEED_ENABLE,1)
end
function c81524977.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
......
......@@ -40,7 +40,7 @@ function c81788994.ctcon(e,tp,eg,ep,ev,re,r,rp)
end
function c81788994.ctop(e,tp,eg,ep,ev,re,r,rp)
local ct=eg:FilterCount(c81788994.cfilter,nil)
e:GetHandler():AddCounter(0x16,ct)
e:GetHandler():AddCounter(0x16+COUNTER_NEED_ENABLE,ct)
end
function c81788994.atkcon(e)
return Duel.GetTurnPlayer()~=e:GetHandlerPlayer()
......
......@@ -34,7 +34,7 @@ function c85541675.accon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c85541675.cfilter,1,nil)
end
function c85541675.acop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x12,1)
e:GetHandler():AddCounter(0x12+COUNTER_NEED_ENABLE,1)
end
function c85541675.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
......
......@@ -27,5 +27,5 @@ function c85754829.accon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c85754829.cfilter,1,e:GetHandler())
end
function c85754829.acop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0xf,1)
e:GetHandler():AddCounter(0xf+COUNTER_NEED_ENABLE,1)
end
......@@ -44,7 +44,7 @@ function c91438994.filter1(c,tp)
end
function c91438994.addc1(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(c91438994.filter1,1,nil,tp) then
e:GetHandler():AddCounter(0xa,1)
e:GetHandler():AddCounter(0xa+COUNTER_NEED_ENABLE,1)
end
end
function c91438994.filter2(c,tp)
......@@ -52,7 +52,7 @@ function c91438994.filter2(c,tp)
end
function c91438994.addc2(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(c91438994.filter2,1,nil,tp) then
e:GetHandler():AddCounter(0xa,2)
e:GetHandler():AddCounter(0xa+COUNTER_NEED_ENABLE,2)
end
end
function c91438994.attackup(e,c)
......
......@@ -43,7 +43,7 @@ function c91607976.cond1(e,tp,eg,ep,ev,re,r,rp)
end
function c91607976.opd1(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x8,1)
e:GetHandler():AddCounter(0x8+COUNTER_NEED_ENABLE,1)
end
end
function c91607976.cond2(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -41,7 +41,7 @@ end
function c94243005.ctop(e,tp,eg,ep,ev,re,r,rp)
local ct=eg:FilterCount(c94243005.ctfilter,nil)
if ct>0 then
e:GetHandler():AddCounter(0x13,ct)
e:GetHandler():AddCounter(0x13+COUNTER_NEED_ENABLE,ct)
end
end
function c94243005.spfilter(c,e,tp)
......
......@@ -68,7 +68,7 @@ function c94807487.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c94807487.regop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0x31,1)
e:GetHandler():AddCounter(0x31+COUNTER_NEED_ENABLE,1)
end
function c94807487.value(e,c)
return e:GetHandler():GetCounter(0x31)*500
......
......@@ -27,7 +27,7 @@ function c97151365.initial_effect(c)
end
function c97151365.ctop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()~=tp or Duel.GetAttackTarget()~=nil then
e:GetHandler():AddCounter(0x1e,1)
e:GetHandler():AddCounter(0x1e+COUNTER_NEED_ENABLE,1)
end
end
function c97151365.spcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -32,7 +32,7 @@ function c99342953.ctcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c99342953.ctfilter,1,nil)
end
function c99342953.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(0xe,1)
e:GetHandler():AddCounter(0xe+COUNTER_NEED_ENABLE,1)
end
function c99342953.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,1,0xe,2,REASON_COST) end
......
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