Commit 288049d7 authored by Fluorohydride's avatar Fluorohydride

Merge pull request #546 from sidschingis/patch-4

fix
parents af97bab9 8e869f13
......@@ -13,6 +13,7 @@ function c22046459.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP)
e2:SetCode(EFFECT_SET_ATTACK)
e2:SetCondition(c22046459.condition)
e2:SetValue(c22046459.value)
c:RegisterEffect(e2)
--Equip limit
......@@ -35,11 +36,16 @@ function c22046459.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Equip(tp,e:GetHandler(),tc)
end
end
function c22046459.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(0)~=Duel.GetLP(1)
end
function c22046459.value(e,c)
local p=e:GetHandler():GetControler()
if Duel.GetLP(p)<Duel.GetLP(1-p) then
return c:GetBaseAttack()*2
elseif Duel.GetLP(p)>Duel.GetLP(1-p) then
return c:GetBaseAttack()/2
else return c:GetAttack() 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