Commit 86941aa4 authored by VanillaSalt's avatar VanillaSalt

fix

parent fec65c9e
......@@ -33,8 +33,6 @@ function c18013090.atop1(e,tp,eg,ep,ev,re,r,rp)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c18013090.atkcon)
e2:SetValue(1000)
e2:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_DAMAGE_CAL+PHASE_END)
......@@ -42,7 +40,7 @@ function c18013090.atop1(e,tp,eg,ep,ev,re,r,rp)
end
function c18013090.atkcon(e)
local c=e:GetHandler()
return c==Duel.GetAttacker()
return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL and c==Duel.GetAttacker()
end
function c18013090.cacon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -74,7 +74,8 @@ function c77625948.repval(e,re,r,rp)
end
function c77625948.atkcon(e)
local tp=e:GetHandlerPlayer()
return Duel.GetAttackTarget()==nil and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)~=0
return Duel.GetCurrentPhase()==PHASE_DAMAGE_CAL
and Duel.GetAttackTarget()==nil and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)~=0
and e:GetHandler():GetEffectCount(EFFECT_DIRECT_ATTACK)==1
end
function c77625948.atkval(e,c)
......
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