Commit 7fd19f2d authored by nanahira's avatar nanahira
parents cad3627f 5c009879
...@@ -72,7 +72,8 @@ function c53143898.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,7 +72,8 @@ function c53143898.spop(e,tp,eg,ep,ev,re,r,rp)
local tc1,tc2=Duel.GetFirstTarget() local tc1,tc2=Duel.GetFirstTarget()
if tc1~=e:GetLabelObject() then tc1,tc2=tc2,tc1 end if tc1~=e:GetLabelObject() then tc1,tc2=tc2,tc1 end
if tc1:IsRelateToEffect(e) and Duel.SendtoGrave(tc1,REASON_EFFECT)>0 if tc1:IsRelateToEffect(e) and Duel.SendtoGrave(tc1,REASON_EFFECT)>0
and tc1:IsLocation(LOCATION_GRAVE) and tc2:IsRelateToEffect(e) then and tc1:IsLocation(LOCATION_GRAVE) and tc2:IsRelateToEffect(e)
and aux.NecroValleyFilter()(tc2) then
Duel.SpecialSummon(tc2,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc2,0,tp,tp,false,false,POS_FACEUP)
end end
end end
...@@ -2101,7 +2101,7 @@ end ...@@ -2101,7 +2101,7 @@ end
--filter for necro_valley test --filter for necro_valley test
function Auxiliary.NecroValleyFilter(f) function Auxiliary.NecroValleyFilter(f)
return function(target,...) return function(target,...)
return f(target,...) and not (target:IsHasEffect(EFFECT_NECRO_VALLEY) and Duel.IsChainDisablable(0)) return (not f or f(target,...)) and not (target:IsHasEffect(EFFECT_NECRO_VALLEY) and Duel.IsChainDisablable(0))
end end
end end
--shortcut for self-banish costs --shortcut for self-banish costs
......
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