Commit a609a2b7 authored by VanillaSalt's avatar VanillaSalt

fix

parent 79179a4c
...@@ -30,7 +30,7 @@ end ...@@ -30,7 +30,7 @@ end
function c14306092.ctop(e,tp,eg,ep,ev,re,r,rp) function c14306092.ctop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsFaceup() then if c:IsRelateToEffect(e) and c:IsFaceup() then
c:AddCounter(0x2e+COUNTER_NEED_ENABLE,1) c:AddCounter(COUNTER_NEED_ENABLE+0x2e,1)
end end
end end
function c14306092.atkcon(e) function c14306092.atkcon(e)
......
...@@ -12,17 +12,17 @@ function c64163367.initial_effect(c) ...@@ -12,17 +12,17 @@ function c64163367.initial_effect(c)
e2:SetOperation(c64163367.ctop1) e2:SetOperation(c64163367.ctop1)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--counter2 --counter2
local e2=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(64163367,0)) e3:SetDescription(aux.Stringid(64163367,0))
e2:SetCategory(CATEGORY_COUNTER) e3:SetCategory(CATEGORY_COUNTER)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_LEAVE_FIELD) e3:SetCode(EVENT_LEAVE_FIELD)
e2:SetCondition(c64163367.ctcon2) e3:SetCondition(c64163367.ctcon2)
e2:SetOperation(c64163367.ctop2) e3:SetOperation(c64163367.ctop2)
c:RegisterEffect(e2) 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(0xe+COUNTER_NEED_ENABLE,1) e:GetHandler():AddCounter(COUNTER_NEED_ENABLE+0xe,1)
end end
function c64163367.ctcon2(e,tp,eg,ep,ev,re,r,rp) function c64163367.ctcon2(e,tp,eg,ep,ev,re,r,rp)
local ct=e:GetHandler():GetCounter(0xe) local ct=e:GetHandler():GetCounter(0xe)
......
...@@ -27,7 +27,7 @@ function c97151365.initial_effect(c) ...@@ -27,7 +27,7 @@ function c97151365.initial_effect(c)
end end
function c97151365.ctop(e,tp,eg,ep,ev,re,r,rp) function c97151365.ctop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()~=tp or Duel.GetAttackTarget()~=nil then if Duel.GetTurnPlayer()~=tp or Duel.GetAttackTarget()~=nil then
e:GetHandler():AddCounter(0x1e+COUNTER_NEED_ENABLE,1) e:GetHandler():AddCounter(COUNTER_NEED_ENABLE+0x1e,1)
end end
end end
function c97151365.spcon(e,tp,eg,ep,ev,re,r,rp) 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) ...@@ -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(0xe+COUNTER_NEED_ENABLE,1) e:GetHandler():AddCounter(COUNTER_NEED_ENABLE+0xe,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,0xe,2,REASON_COST) end 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