Commit 74cea872 authored by nekrozar's avatar nekrozar

fix

parent a43e52ca
...@@ -20,13 +20,14 @@ function c30488793.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -20,13 +20,14 @@ function c30488793.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local a1=Duel.GetAttacker():GetAttack() local a1=Duel.GetAttacker():GetAttack()
local a2=Duel.GetAttackTarget():GetAttack() local a2=Duel.GetAttackTarget():GetAttack()
local dam=a1-a2 local dam=math.abs(a1-a2)
if dam<0 then dam=-dam end
Duel.SetTargetPlayer(1-tp) Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(dam) Duel.SetTargetParam(dam)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,0,0,1-tp,dam) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,0,0,1-tp,dam)
end end
function c30488793.activate(e,tp,eg,ep,ev,re,r,rp) function c30488793.activate(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) if Duel.GetAttacker():GetAttack():IsFaceup() and Duel.GetAttackTarget():GetAttack():IsFaceup() then
Duel.Damage(p,d,REASON_EFFECT) local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
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