Commit 0b371a34 authored by Tachibana's avatar Tachibana

ndyd

parent 2e732a83
...@@ -120,17 +120,18 @@ function c9310029.eqfilter(c) ...@@ -120,17 +120,18 @@ function c9310029.eqfilter(c)
end end
function c9310029.eqtg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c9310029.eqtg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c9310029.eqfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c9310029.eqfilter(chkc) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 if chk==0 then return Duel.IsExistingTarget(c9310029.eqfilter,tp,LOCATION_MZONE,0,1,nil) end
and Duel.IsExistingTarget(c9310029.eqfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
Duel.SelectTarget(tp,c9310029.eqfilter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c9310029.eqfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end end
function c9310029.eqop2(e,tp,eg,ep,ev,re,r,rp) function c9310029.eqop2(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 tc:IsFaceup() and tc:IsControler(tp) and tc:IsRelateToEffect(e) then if tc:GetControler()~=tp or tc:IsFacedown() or not tc:IsRelateToEffect(e) then
if not Duel.Equip(tp,c,tc) then return end Duel.SendtoGrave(c,REASON_EFFECT)
return
end
if not Duel.Equip(tp,c,tc) then return end
--equip limit --equip limit
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -140,7 +141,6 @@ function c9310029.eqop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -140,7 +141,6 @@ function c9310029.eqop2(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(c9310029.eqlimit) e1:SetValue(c9310029.eqlimit)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end
end end
function c9310029.eqlimit(e,c) function c9310029.eqlimit(e,c)
return c==e:GetLabelObject() return c==e:GetLabelObject()
......
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