Commit 52ac4a06 authored by nanahira's avatar nanahira

fix

parent f499df0c
......@@ -88,6 +88,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
if c:IsFacedown() or not c:IsRelateToEffect(e) then return end
if c==d then d=Duel.GetAttacker() end
if d and d:IsRelateToBattle() then
local atk=d:GetAttack()
if not Duel.Equip(tp,d,c) then return end
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -96,6 +97,9 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(cm.eqlimit)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
d:RegisterEffect(e1)
if atk>0 then
Duel.Damage(1-tp,atk,REASON_EFFECT)
end
end
end
function cm.eqlimit(e,c)
......@@ -153,7 +157,3 @@ function cm.mlimit(e,c)
return not c:IsSetCard(code)
end
--yl_testok
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