Commit 17f67bf3 authored by nanahira's avatar nanahira

fix

parent 3d633608
...@@ -58,7 +58,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
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 Duel.Equip(tp,tc,c)==0 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)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
......
...@@ -91,7 +91,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,7 +91,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 tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) and tc:IsControler(1-tp) then if tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) and tc:IsControler(1-tp) then
if c:IsFaceup() and c:IsRelateToEffect(e) then --if c:IsFaceup() and c:IsRelateToEffect(e) then
if not Duel.Equip(tp,tc,c,false) then return end if not Duel.Equip(tp,tc,c,false) then return end
--Add Equip limit --Add Equip limit
tc:RegisterFlagEffect(m,RESET_EVENT+0x1fe0000,0,0) tc:RegisterFlagEffect(m,RESET_EVENT+0x1fe0000,0,0)
...@@ -111,7 +111,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -111,7 +111,7 @@ function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+0x1fe0000) e2:SetReset(RESET_EVENT+0x1fe0000)
e2:SetValue(cm.repval) e2:SetValue(cm.repval)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
else Duel.SendtoGrave(tc,REASON_RULE) end --else Duel.SendtoGrave(tc,REASON_RULE) end
end end
end end
function cm.repval(e,re,r,rp) function cm.repval(e,re,r,rp)
......
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