Commit d53b78b7 authored by salix5's avatar salix5

necro valley

parent 97dff7c7
...@@ -67,11 +67,7 @@ end ...@@ -67,11 +67,7 @@ end
function c47355498.conntp(e) function c47355498.conntp(e)
return not Duel.IsPlayerAffectedByEffect(1-e:GetHandler():GetControler(),EFFECT_NECRO_VALLEY_IM) return not Duel.IsPlayerAffectedByEffect(1-e:GetHandler():GetControler(),EFFECT_NECRO_VALLEY_IM)
end end
function c47355498.disfilter1(c,im0,im1,targets) function c47355498.disfilter(c,im0,im1)
if c:IsControler(0) then return im0 and targets:IsContains(c) and c:IsHasEffect(EFFECT_NECRO_VALLEY)
else return im1 and targets:IsContains(c) and c:IsHasEffect(EFFECT_NECRO_VALLEY) end
end
function c47355498.disfilter2(c,im0,im1)
if c:IsControler(0) then return im0 and c:IsHasEffect(EFFECT_NECRO_VALLEY) if c:IsControler(0) then return im0 and c:IsHasEffect(EFFECT_NECRO_VALLEY)
else return im1 and c:IsHasEffect(EFFECT_NECRO_VALLEY) end else return im1 and c:IsHasEffect(EFFECT_NECRO_VALLEY) end
end end
...@@ -79,10 +75,10 @@ function c47355498.discheck(ev,category,re,im0,im1,targets) ...@@ -79,10 +75,10 @@ function c47355498.discheck(ev,category,re,im0,im1,targets)
local ex,tg,ct,p,v=Duel.GetOperationInfo(ev,category) local ex,tg,ct,p,v=Duel.GetOperationInfo(ev,category)
if not ex then return false end if not ex then return false end
if tg and tg:GetCount()>0 then if tg and tg:GetCount()>0 then
if targets then if targets and targets:IsContains(re:GetHandler()) then
return tg:IsExists(c47355498.disfilter1,1,nil,im0,im1,targets) return tg:IsExists(c47355498.disfilter,1,nil,im0,im1)
else else
return tg:IsExists(c47355498.disfilter2,1,re:GetHandler(),im0,im1) return tg:IsExists(c47355498.disfilter,1,re:GetHandler(),im0,im1)
end end
end end
if v~=LOCATION_GRAVE then return false end if v~=LOCATION_GRAVE then return false end
......
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