Commit dcf68785 authored by salix5's avatar salix5

Merge pull request #429 from mercury233/patch-1

fix extra attack effects activation limit
parents db345f40 0c546e35
...@@ -27,7 +27,6 @@ function c48770333.initial_effect(c) ...@@ -27,7 +27,6 @@ function c48770333.initial_effect(c)
e3:SetCountLimit(1) e3:SetCountLimit(1)
e3:SetCondition(c48770333.atkcon) e3:SetCondition(c48770333.atkcon)
e3:SetCost(c48770333.atkcost) e3:SetCost(c48770333.atkcost)
e3:SetTarget(c48770333.atktg)
e3:SetOperation(c48770333.atkop) e3:SetOperation(c48770333.atkop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
...@@ -58,9 +57,6 @@ function c48770333.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -58,9 +57,6 @@ function c48770333.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,1,0x37,3,REASON_COST) end if chk==0 then return Duel.IsCanRemoveCounter(tp,1,1,0x37,3,REASON_COST) end
Duel.RemoveCounter(tp,1,1,0x37,3,REASON_COST) Duel.RemoveCounter(tp,1,1,0x37,3,REASON_COST)
end end
function c48770333.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK)==0 end
end
function c48770333.atkop(e,tp,eg,ep,ev,re,r,rp) function c48770333.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -79,7 +79,8 @@ function c58820923.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -79,7 +79,8 @@ function c58820923.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end end
function c58820923.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function c58820923.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK)==0 end if chk==0 then return e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK)==0
and e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK_MONSTER)==0 end
end end
function c58820923.atkop(e,tp,eg,ep,ev,re,r,rp) function c58820923.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -70,7 +70,7 @@ function c68396121.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -70,7 +70,7 @@ function c68396121.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c68396121.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function c68396121.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK)==0 end if chk==0 then return e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK_MONSTER)==0 end
end end
function c68396121.atkop(e,tp,eg,ep,ev,re,r,rp) function c68396121.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
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