Commit 20136f45 authored by mercury233's avatar mercury233 Committed by GitHub

remove COUNTER_NEED_ENABLE (#1591)

Co-authored-by: default avatarsalix5 <salix5@livemail.tw>
parent 4f8fd84e
...@@ -42,7 +42,7 @@ end ...@@ -42,7 +42,7 @@ end
function c16197610.addc(e,tp,eg,ep,ev,re,r,rp) function c16197610.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
local ct=Duel.GetMatchingGroupCount(c16197610.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local ct=Duel.GetMatchingGroupCount(c16197610.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
e:GetHandler():AddCounter(COUNTER_NEED_ENABLE+0x1019,ct) e:GetHandler():AddCounter(0x1019,ct)
end end
end end
function c16197610.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c16197610.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -43,7 +43,7 @@ end ...@@ -43,7 +43,7 @@ end
function c17810268.addc(e,tp,eg,ep,ev,re,r,rp) function c17810268.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
local ct=Duel.GetMatchingGroupCount(c17810268.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local ct=Duel.GetMatchingGroupCount(c17810268.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
e:GetHandler():AddCounter(COUNTER_NEED_ENABLE+0x1019,ct) e:GetHandler():AddCounter(0x1019,ct)
end end
end end
function c17810268.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c17810268.descost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -80,7 +80,7 @@ function c20003527.addcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,7 +80,7 @@ function c20003527.addcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c20003527.addc(e,tp,eg,ep,ev,re,r,rp) function c20003527.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(COUNTER_NEED_ENABLE+0x1019,e:GetLabelObject():GetLabel()) e:GetHandler():AddCounter(0x1019,e:GetLabelObject():GetLabel())
end end
end end
function c20003527.atkval(e,c) function c20003527.atkval(e,c)
......
...@@ -64,7 +64,7 @@ end ...@@ -64,7 +64,7 @@ end
function c25920413.ctop(e,tp,eg,ep,ev,re,r,rp) function c25920413.ctop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFaceup() then if c:IsFaceup() then
c:AddCounter(COUNTER_NEED_ENABLE+0x100e,1) c:AddCounter(0x100e,1)
end end
end end
function c25920413.adcon(e) function c25920413.adcon(e)
......
...@@ -43,7 +43,7 @@ end ...@@ -43,7 +43,7 @@ end
function c43318266.addc(e,tp,eg,ep,ev,re,r,rp) function c43318266.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
local ct=Duel.GetMatchingGroupCount(c43318266.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local ct=Duel.GetMatchingGroupCount(c43318266.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
e:GetHandler():AddCounter(COUNTER_NEED_ENABLE+0x1019,ct) e:GetHandler():AddCounter(0x1019,ct)
end end
end end
function c43318266.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c43318266.descost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -38,7 +38,7 @@ function c4694209.addct(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,7 +38,7 @@ function c4694209.addct(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c4694209.addc(e,tp,eg,ep,ev,re,r,rp) function c4694209.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
e:GetHandler():AddCounter(0x1021+COUNTER_NEED_ENABLE,1) e:GetHandler():AddCounter(0x1021,1)
end end
end end
function c4694209.attackup(e,c) function c4694209.attackup(e,c)
......
...@@ -29,7 +29,7 @@ function c64163367.initial_effect(c) ...@@ -29,7 +29,7 @@ function c64163367.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c64163367.ctop1(e,tp,eg,ep,ev,re,r,rp) function c64163367.ctop1(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(COUNTER_NEED_ENABLE+0x100e,1) e:GetHandler():AddCounter(0x100e,1)
end end
function c64163367.regop(e,tp,eg,ep,ev,re,r,rp) function c64163367.regop(e,tp,eg,ep,ev,re,r,rp)
local ct=e:GetHandler():GetCounter(0x100e) local ct=e:GetHandler():GetCounter(0x100e)
......
...@@ -42,7 +42,7 @@ end ...@@ -42,7 +42,7 @@ end
function c79703905.addc(e,tp,eg,ep,ev,re,r,rp) function c79703905.addc(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) then if e:GetHandler():IsRelateToEffect(e) then
local ct=Duel.GetMatchingGroupCount(c79703905.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local ct=Duel.GetMatchingGroupCount(c79703905.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
e:GetHandler():AddCounter(COUNTER_NEED_ENABLE+0x1019,ct) e:GetHandler():AddCounter(0x1019,ct)
end end
end end
function c79703905.hdcost(e,tp,eg,ep,ev,re,r,rp,chk) function c79703905.hdcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -32,7 +32,7 @@ function c99342953.ctcon(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) return eg:IsExists(c99342953.ctfilter,1,nil)
end end
function c99342953.ctop(e,tp,eg,ep,ev,re,r,rp) function c99342953.ctop(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():AddCounter(COUNTER_NEED_ENABLE+0x100e,1) e:GetHandler():AddCounter(0x100e,1)
end end
function c99342953.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c99342953.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,1,0x100e,2,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,1,0x100e,2,REASON_COST) end
......
...@@ -194,7 +194,7 @@ LINK_MARKER_TOP =0x080 -- ↑ ...@@ -194,7 +194,7 @@ LINK_MARKER_TOP =0x080 -- ↑
LINK_MARKER_TOP_RIGHT =0x100 -- ↗ LINK_MARKER_TOP_RIGHT =0x100 -- ↗
--Counter --指示物 --Counter --指示物
COUNTER_WITHOUT_PERMIT =0x1000 --可以放置在非特定對象的指示物 COUNTER_WITHOUT_PERMIT =0x1000 --可以放置在非特定對象的指示物
COUNTER_NEED_ENABLE =0x2000 --在卡片本身放置上述指示物的標記(卡片守衛) COUNTER_NEED_ENABLE =0x2000 --N/A
--Phase --阶段 --Phase --阶段
PHASE_DRAW =0x01 --抽卡阶段 PHASE_DRAW =0x01 --抽卡阶段
PHASE_STANDBY =0x02 --准备阶段 PHASE_STANDBY =0x02 --准备阶段
......
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