Commit 0c3fd997 authored by dest's avatar dest Committed by salix5

errata Necrovalley (#713)

* errata Necrovalley

* summon proc necrovalley

* revert summon proc for ss only
parent 755d326a
...@@ -25,6 +25,7 @@ function c34230233.spfilter(c) ...@@ -25,6 +25,7 @@ function c34230233.spfilter(c)
end end
function c34230233.spcon(e,c) function c34230233.spcon(e,c)
if c==nil then return true end if c==nil then return true end
if c:IsHasEffect(EFFECT_NECRO_VALLEY) then return false end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1 return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c34230233.spfilter,c:GetControler(),LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(c34230233.spfilter,c:GetControler(),LOCATION_MZONE,0,1,nil)
end end
......
...@@ -81,11 +81,7 @@ function c47355498.discheck(ev,category,re,im0,im1,targets) ...@@ -81,11 +81,7 @@ function c47355498.discheck(ev,category,re,im0,im1,targets)
end end
end end
if tg and tg:GetCount()>0 then if tg and tg:GetCount()>0 then
if targets and targets:IsContains(re:GetHandler()) then return tg:IsExists(c47355498.disfilter,1,nil,im0,im1)
return tg:IsExists(c47355498.disfilter,1,nil,im0,im1)
else
return tg:IsExists(c47355498.disfilter,1,re:GetHandler(),im0,im1)
end
end end
return false return false
end end
......
...@@ -33,17 +33,18 @@ function c5556499.spfilter(c) ...@@ -33,17 +33,18 @@ function c5556499.spfilter(c)
end end
function c5556499.spcon(e,c) function c5556499.spcon(e,c)
if c==nil then return true end if c==nil then return true end
if c:IsHasEffect(EFFECT_NECRO_VALLEY) then return false end
local tp=c:GetControler() local tp=c:GetControler()
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return false end
local g=Duel.GetMatchingGroup(c5556499.spfilter,tp,LOCATION_HAND,0,nil) local g=Duel.GetMatchingGroup(c5556499.spfilter,tp,LOCATION_HAND,0,nil)
if not c:IsAbleToGraveAsCost() then if not c:IsAbleToGraveAsCost() or Duel.IsPlayerAffectedByEffect(tp,EFFECT_NECRO_VALLEY) then
g:RemoveCard(c) g:RemoveCard(c)
end end
return g:CheckWithSumGreater(Card.GetLevel,8) return g:CheckWithSumGreater(Card.GetLevel,8)
end end
function c5556499.spop(e,tp,eg,ep,ev,re,r,rp,c) function c5556499.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.GetMatchingGroup(c5556499.spfilter,c:GetControler(),LOCATION_HAND,0,nil) local g=Duel.GetMatchingGroup(c5556499.spfilter,c:GetControler(),LOCATION_HAND,0,nil)
if not c:IsAbleToGraveAsCost() then if not c:IsAbleToGraveAsCost() or Duel.IsPlayerAffectedByEffect(tp,EFFECT_NECRO_VALLEY) then
g:RemoveCard(c) g:RemoveCard(c)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
......
...@@ -52,6 +52,7 @@ function c99365553.spfilter2(c,att) ...@@ -52,6 +52,7 @@ function c99365553.spfilter2(c,att)
end end
function c99365553.spcon2(e,c) function c99365553.spcon2(e,c)
if c==nil then return true end if c==nil then return true end
if c:IsHasEffect(EFFECT_NECRO_VALLEY) then return false end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c99365553.spfilter2,tp,LOCATION_HAND,0,1,nil,ATTRIBUTE_LIGHT) and Duel.IsExistingMatchingCard(c99365553.spfilter2,tp,LOCATION_HAND,0,1,nil,ATTRIBUTE_LIGHT)
......
...@@ -31,6 +31,7 @@ function c99913726.rfilter(c) ...@@ -31,6 +31,7 @@ function c99913726.rfilter(c)
end end
function c99913726.hspcon(e,c) function c99913726.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
if c:IsHasEffect(EFFECT_NECRO_VALLEY) then return false end
local tp=c:GetControler() local tp=c:GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local m=0 local m=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