Commit 56ee49b0 authored by mercury233's avatar mercury233 Committed by GitHub

fix

parent 3c95ccab
...@@ -13,7 +13,7 @@ function c52339733.atkcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -13,7 +13,7 @@ function c52339733.atkcon(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
return d and a:GetControler()~=d:GetControler() return d and a:GetControler()~=d:GetControler()
and a:IsDefenseAbove(0) and d:IsDefenseAbove(0) and (a:IsDefenseAbove(0) or d:IsDefenseAbove(0))
end end
function c52339733.atkop(e,tp,eg,ep,ev,re,r,rp) function c52339733.atkop(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
...@@ -22,11 +22,15 @@ function c52339733.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -22,11 +22,15 @@ function c52339733.atkop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(a:GetDefense())
e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL) e1:SetReset(RESET_PHASE+PHASE_DAMAGE_CAL)
a:RegisterEffect(e1) if a:IsDefenseAbove(0) then
local e2=e1:Clone() e1:SetValue(a:GetDefense())
e2:SetValue(d:GetDefense()) a:RegisterEffect(e1)
d:RegisterEffect(e2) end
if d:IsDefenseAbove(0) then
local e2=e1:Clone()
e2:SetValue(d:GetDefense())
d:RegisterEffect(e2)
end
end end
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