Commit a3d9844e authored by nanahira's avatar nanahira

fix

parent 17f67bf3
...@@ -57,7 +57,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not (tc:IsRelateToEffect(e) and tc:IsFaceup()) then return end if not (tc:IsRelateToEffect(e) and tc:IsFaceup()) then return end
if c:IsFaceup() and c:IsRelateToEffect(e) then --if c:IsFaceup() and c:IsRelateToEffect(e) then
if not Duel.Equip(tp,tc,c) then return end if not Duel.Equip(tp,tc,c) then return end
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
...@@ -66,7 +66,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(cm.eqlimit) e2:SetValue(cm.eqlimit)
e2:SetReset(RESET_EVENT+0x1fe0000) e2:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
else Duel.SendtoGrave(tc,REASON_RULE) end --else Duel.SendtoGrave(tc,REASON_RULE) end
end end
function cm.eqlimit(e,c) function cm.eqlimit(e,c)
return e:GetOwner()==c return e:GetOwner()==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