Commit 71c0292b authored by Huangnan's avatar Huangnan

imironman

parent 79448f8f
...@@ -57,7 +57,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -57,7 +57,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.nefilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.nefilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(s.nefilter,tp,LOCATION_MZONE,0,1,nil,e) end if chk==0 then return Duel.IsExistingTarget(s.nefilter,tp,LOCATION_MZONE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g = Duel.SelectTarget(tp,s.nefilter,tp,LOCATION_MZONE,0,1,1,nil,e) local g = Duel.SelectTarget(tp,s.nefilter,tp,LOCATION_MZONE,0,1,1,nil,e)
...@@ -97,7 +97,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,7 +97,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.nefilter(c,e) function s.nefilter(c,e,tp)
local zone = c:GetLinkedZone(c:GetControler()) local zone = c:GetLinkedZone(c:GetControler())
local ct=Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone) local ct=Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)
return c:IsType(TYPE_LINK) and c:IsFaceup() and Duel.IsExistingMatchingCard(s.sfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,zone) and ct>0 return c:IsType(TYPE_LINK) and c:IsFaceup() and Duel.IsExistingMatchingCard(s.sfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,zone) and ct>0
......
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