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

Replace c12866780.lua

parent 8c3a862e
...@@ -72,6 +72,7 @@ end ...@@ -72,6 +72,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)
...@@ -87,6 +88,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,6 +88,7 @@ function s.eqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(2000) e2:SetValue(2000)
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