Commit 5a49cba7 authored by Tachibana's avatar Tachibana

ndyd

parent 94fd9b76
......@@ -8,7 +8,6 @@ function c9310003.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,9310003)
e1:SetTarget(c9310003.eqtg)
e1:SetOperation(c9310003.eqop)
c:RegisterEffect(e1)
......@@ -37,10 +36,12 @@ function c9310003.qfilter(c)
return c:IsFaceup()
end
function c9310003.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c9310003.qfilter(chkc) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
if chk==0 then return c:GetFlagEffect(9310003)==0 and Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingTarget(c9310003.qfilter,tp,LOCATION_MZONE,0,1,e:GetHandler()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
c:RegisterFlagEffect(9310003,RESET_CHAIN,0,1)
Duel.SelectTarget(tp,c9310003.qfilter,tp,LOCATION_MZONE,0,1,1,e:GetHandler())
end
function c9310003.eqop(e,tp,eg,ep,ev,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