Commit 6dd58a06 authored by salix5's avatar salix5

update counter

parent 622765d3
......@@ -64,7 +64,7 @@ end
function c25920413.ctop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsFaceup() and c:IsRelateToEffect(e) then
c:AddCounter(0xe,1)
c:AddCounter(0x100e,1)
end
end
function c25920413.adcon(e)
......@@ -72,8 +72,8 @@ function c25920413.adcon(e)
end
function c25920413.adtg(e,c)
local bc=c:GetBattleTarget()
return bc and c:GetCounter(0xe)~=0 and bc:IsSetCard(0xc)
return bc and c:GetCounter(0x100e)~=0 and bc:IsSetCard(0xc)
end
function c25920413.adval(e,c)
return c:GetCounter(0xe)*-300
return c:GetCounter(0x100e)*-300
end
......@@ -55,12 +55,12 @@ function c51192573.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_COUNTER,g,1,0xe,1)
Duel.SetOperationInfo(0,CATEGORY_COUNTER,g,1,0x100e,1)
end
function c51192573.ctop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) then
tc:AddCounter(0xe,1)
tc:AddCounter(0x100e,1)
end
end
function c51192573.adcon(e)
......@@ -68,8 +68,8 @@ function c51192573.adcon(e)
end
function c51192573.adtg(e,c)
local bc=c:GetBattleTarget()
return bc and c:GetCounter(0xe)~=0 and bc:IsSetCard(0xc)
return bc and c:GetCounter(0x100e)~=0 and bc:IsSetCard(0xc)
end
function c51192573.adval(e,c)
return c:GetCounter(0xe)*-300
return c:GetCounter(0x100e)*-300
end
......@@ -44,12 +44,12 @@ function c62437709.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_COUNTER,g,1,0xe,1)
Duel.SetOperationInfo(0,CATEGORY_COUNTER,g,1,0x100e,1)
end
function c62437709.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc and tc:IsFaceup() and tc:IsRelateToEffect(e) then
tc:AddCounter(0xe,1)
tc:AddCounter(0x100e,1)
end
end
function c62437709.flop(e,tp,eg,ep,ev,re,r,rp)
......@@ -74,8 +74,8 @@ function c62437709.adcon(e)
end
function c62437709.adtg(e,c)
local bc=c:GetBattleTarget()
return bc and c:GetCounter(0xe)~=0 and bc:IsSetCard(0xc)
return bc and c:GetCounter(0x100e)~=0 and bc:IsSetCard(0xc)
end
function c62437709.adval(e,c)
return c:GetCounter(0xe)*-300
return c:GetCounter(0x100e)*-300
end
......@@ -37,10 +37,10 @@ end
function c63253763.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
and Duel.IsCanRemoveCounter(c:GetControler(),1,1,0xe,2,REASON_COST)
and Duel.IsCanRemoveCounter(c:GetControler(),1,1,0x100e,2,REASON_COST)
end
function c63253763.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.RemoveCounter(tp,1,1,0xe,2,REASON_COST)
Duel.RemoveCounter(tp,1,1,0x100e,2,REASON_COST)
end
function c63253763.cttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
......@@ -49,7 +49,7 @@ function c63253763.ctop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
local tc=g:GetFirst()
while tc do
tc:AddCounter(0xe,1)
tc:AddCounter(0x100e,1)
tc=g:GetNext()
end
end
......@@ -58,8 +58,8 @@ function c63253763.adcon(e)
end
function c63253763.adtg(e,c)
local bc=c:GetBattleTarget()
return bc and c:GetCounter(0xe)~=0 and bc:IsSetCard(0xc)
return bc and c:GetCounter(0x100e)~=0 and bc:IsSetCard(0xc)
end
function c63253763.adval(e,c)
return c:GetCounter(0xe)*-300
return c:GetCounter(0x100e)*-300
end
......@@ -25,7 +25,7 @@ function c64160836.ctop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst()
while tc do
if tc:IsFaceup() and tc:IsControler(1-tp) then
tc:AddCounter(0xe,1)
tc:AddCounter(0x100e,1)
end
tc=eg:GetNext()
end
......@@ -35,8 +35,8 @@ function c64160836.adcon(e)
end
function c64160836.adtg(e,c)
local bc=c:GetBattleTarget()
return bc and c:GetCounter(0xe)~=0 and bc:IsSetCard(0xc)
return bc and c:GetCounter(0x100e)~=0 and bc:IsSetCard(0xc)
end
function c64160836.adval(e,c)
return c:GetCounter(0xe)*-300
return c:GetCounter(0x100e)*-300
end
......@@ -27,8 +27,8 @@ function c91070115.initial_effect(c)
c:RegisterEffect(e3)
end
function c91070115.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsCanRemoveCounter(tp,0,1,0xe,1,REASON_COST) end
Duel.RemoveCounter(tp,0,1,0xe,1,REASON_COST)
if chk==0 then return Duel.IsCanRemoveCounter(tp,0,1,0x100e,1,REASON_COST) end
Duel.RemoveCounter(tp,0,1,0x100e,1,REASON_COST)
end
function c91070115.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDestructable()
......@@ -51,8 +51,8 @@ function c91070115.adcon(e)
end
function c91070115.adtg(e,c)
local bc=c:GetBattleTarget()
return bc and c:GetCounter(0xe)~=0 and bc:IsSetCard(0xc)
return bc and c:GetCounter(0x100e)~=0 and bc:IsSetCard(0xc)
end
function c91070115.adval(e,c)
return c:GetCounter(0xe)*-300
return c:GetCounter(0x100e)*-300
end
......@@ -29,7 +29,7 @@ end
function c98719226.ctop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetHandler():GetReasonCard()
if tc:IsFaceup() and tc:IsRelateToBattle() then
tc:AddCounter(0xe,2)
tc:AddCounter(0x100e,2)
end
end
function c98719226.adcon(e)
......@@ -37,8 +37,8 @@ function c98719226.adcon(e)
end
function c98719226.adtg(e,c)
local bc=c:GetBattleTarget()
return bc and c:GetCounter(0xe)~=0 and bc:IsSetCard(0xc)
return bc and c:GetCounter(0x100e)~=0 and bc:IsSetCard(0xc)
end
function c98719226.adval(e,c)
return c:GetCounter(0xe)*-300
return c:GetCounter(0x100e)*-300
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