Commit 79b6b2c5 authored by mercury233's avatar mercury233

update A-Counter add list

parent 4ed340d3
...@@ -21,6 +21,7 @@ function c15475415.initial_effect(c) ...@@ -21,6 +21,7 @@ function c15475415.initial_effect(c)
e2:SetOperation(c15475415.ctop) e2:SetOperation(c15475415.ctop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c15475415.counter_add_list={0x100e}
function c15475415.spcon(e,tp,eg,ep,ev,re,r,rp) function c15475415.spcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and eg:GetFirst():IsSetCard(0xc) return ep==tp and eg:GetFirst():IsSetCard(0xc)
end end
......
...@@ -10,6 +10,7 @@ function c2561846.initial_effect(c) ...@@ -10,6 +10,7 @@ function c2561846.initial_effect(c)
e1:SetOperation(c2561846.operation) e1:SetOperation(c2561846.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c2561846.counter_add_list={0x100e}
function c2561846.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c2561846.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsCanAddCounter(0x100e,1) end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsCanAddCounter(0x100e,1) end
if chk==0 then return Duel.IsExistingTarget(Card.IsCanAddCounter,tp,0,LOCATION_MZONE,1,nil,0x100e,1) end if chk==0 then return Duel.IsExistingTarget(Card.IsCanAddCounter,tp,0,LOCATION_MZONE,1,nil,0x100e,1) end
......
...@@ -34,6 +34,7 @@ function c25920413.initial_effect(c) ...@@ -34,6 +34,7 @@ function c25920413.initial_effect(c)
e4:SetCode(EFFECT_UPDATE_DEFENSE) e4:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c25920413.counter_add_list={0x100e}
function c25920413.spfilter(c) function c25920413.spfilter(c)
return c:IsLevelBelow(3) and c:IsFaceup() and c:IsReleasable() return c:IsLevelBelow(3) and c:IsFaceup() and c:IsReleasable()
end end
......
...@@ -18,6 +18,7 @@ function c34541863.initial_effect(c) ...@@ -18,6 +18,7 @@ function c34541863.initial_effect(c)
e2:SetOperation(c34541863.operation) e2:SetOperation(c34541863.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c34541863.counter_add_list={0x100e}
function c34541863.condition(e,tp,eg,ep,ev,re,r,rp) function c34541863.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
......
...@@ -11,6 +11,7 @@ function c39163598.initial_effect(c) ...@@ -11,6 +11,7 @@ function c39163598.initial_effect(c)
e1:SetOperation(c39163598.activate) e1:SetOperation(c39163598.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c39163598.counter_add_list={0x100e}
function c39163598.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c39163598.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0xc) end if chk==0 then return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0xc) end
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0xc) local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0xc)
......
...@@ -35,6 +35,7 @@ function c51192573.initial_effect(c) ...@@ -35,6 +35,7 @@ function c51192573.initial_effect(c)
e4:SetCode(EFFECT_UPDATE_DEFENSE) e4:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c51192573.counter_add_list={0x100e}
function c51192573.otfilter(c,tp) function c51192573.otfilter(c,tp)
return c:GetOwner()==tp return c:GetOwner()==tp
end end
......
...@@ -39,6 +39,7 @@ function c62437709.initial_effect(c) ...@@ -39,6 +39,7 @@ function c62437709.initial_effect(c)
e5:SetCode(EFFECT_UPDATE_DEFENSE) e5:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c62437709.counter_add_list={0x100e}
function c62437709.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c62437709.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsFaceup() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsFaceup() end
if chk==0 then return true end if chk==0 then return true end
......
...@@ -34,6 +34,7 @@ function c63253763.initial_effect(c) ...@@ -34,6 +34,7 @@ function c63253763.initial_effect(c)
e4:SetCode(EFFECT_UPDATE_DEFENSE) e4:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c63253763.counter_add_list={0x100e}
function c63253763.spcon(e,c) function c63253763.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
......
...@@ -21,6 +21,7 @@ function c64160836.initial_effect(c) ...@@ -21,6 +21,7 @@ function c64160836.initial_effect(c)
e3:SetCode(EFFECT_UPDATE_DEFENSE) e3:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c64160836.counter_add_list={0x100e}
function c64160836.ctop(e,tp,eg,ep,ev,re,r,rp) function c64160836.ctop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
while tc do while tc do
......
...@@ -28,6 +28,7 @@ function c64163367.initial_effect(c) ...@@ -28,6 +28,7 @@ function c64163367.initial_effect(c)
e3:SetLabelObject(e0) e3:SetLabelObject(e0)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c64163367.counter_add_list={0x100e}
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(0x100e,1) e:GetHandler():AddCounter(0x100e,1)
end end
......
...@@ -28,6 +28,7 @@ function c68319538.initial_effect(c) ...@@ -28,6 +28,7 @@ function c68319538.initial_effect(c)
e2:SetOperation(c68319538.desop) e2:SetOperation(c68319538.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c68319538.counter_add_list={0x100e}
function c68319538.filter(c) function c68319538.filter(c)
return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand() return c:IsFaceup() and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsAbleToHand()
end end
......
...@@ -10,6 +10,7 @@ function c73262676.initial_effect(c) ...@@ -10,6 +10,7 @@ function c73262676.initial_effect(c)
e1:SetOperation(c73262676.operation) e1:SetOperation(c73262676.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c73262676.counter_add_list={0x100e}
function c73262676.filter(c) function c73262676.filter(c)
return c:IsFaceup() and c:IsSetCard(0xc) and c:GetLevel()>0 return c:IsFaceup() and c:IsSetCard(0xc) and c:GetLevel()>0
end end
......
...@@ -29,6 +29,7 @@ function c74974229.initial_effect(c) ...@@ -29,6 +29,7 @@ function c74974229.initial_effect(c)
e2:SetOperation(c74974229.spop) e2:SetOperation(c74974229.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c74974229.counter_add_list={0x100e}
function c74974229.costfilter(c) function c74974229.costfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsLevelAbove(1) and c:IsDiscardable() return c:IsType(TYPE_MONSTER) and c:IsLevelAbove(1) and c:IsDiscardable()
end end
......
...@@ -21,6 +21,7 @@ function c91231901.initial_effect(c) ...@@ -21,6 +21,7 @@ function c91231901.initial_effect(c)
e2:SetOperation(c91231901.thop) e2:SetOperation(c91231901.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c91231901.counter_add_list={0x100e}
function c91231901.filter(c) function c91231901.filter(c)
return c:GetLevel()>0 and c:IsSetCard(0xc) and c:IsAbleToGrave() return c:GetLevel()>0 and c:IsSetCard(0xc) and c:IsAbleToGrave()
end end
......
...@@ -23,6 +23,7 @@ function c98719226.initial_effect(c) ...@@ -23,6 +23,7 @@ function c98719226.initial_effect(c)
e3:SetCode(EFFECT_UPDATE_DEFENSE) e3:SetCode(EFFECT_UPDATE_DEFENSE)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c98719226.counter_add_list={0x100e}
function c98719226.ctcon(e,tp,eg,ep,ev,re,r,rp) function c98719226.ctcon(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
......
...@@ -25,6 +25,7 @@ function c99342953.initial_effect(c) ...@@ -25,6 +25,7 @@ function c99342953.initial_effect(c)
e3:SetOperation(c99342953.spop) e3:SetOperation(c99342953.spop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c99342953.counter_add_list={0x100e}
function c99342953.ctfilter(c) function c99342953.ctfilter(c)
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0xc) return c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0xc)
end 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