Commit bb76eafd authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c12866765.lua

parent dc4a0682
...@@ -70,6 +70,7 @@ end ...@@ -70,6 +70,7 @@ end
function s.eqop(e,tp,eg,ep,ev,re,r,rp) function s.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 c:IsRelateToEffect(e) and c:IsFaceup() then
if tc:IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then if tc:IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then
Duel.Equip(tp,tc,c,false) Duel.Equip(tp,tc,c,false)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -85,6 +86,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,6 +86,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(500) e2:SetValue(500)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
end
end end
end end
function s.eqlimit(e,c) function s.eqlimit(e,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