Commit 31085347 authored by mercury233's avatar mercury233 Committed by GitHub

fix (#1178)

parent 2a2457f7
...@@ -36,16 +36,16 @@ function c96150936.indestg(e,c) ...@@ -36,16 +36,16 @@ function c96150936.indestg(e,c)
return c:IsSetCard(0x71) and c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsSetCard(0x71) and c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function c96150936.desrepfilter(c) function c96150936.desrepfilter(c)
return c:IsSetCard(0x71) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck() return c:IsSetCard(0x71) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck() and not c:IsHasEffect(EFFECT_NECRO_VALLEY)
end end
function c96150936.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) function c96150936.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsReason(REASON_BATTLE+REASON_EFFECT) and not c:IsReason(REASON_REPLACE) if chk==0 then return c:IsReason(REASON_BATTLE+REASON_EFFECT) and not c:IsReason(REASON_REPLACE)
and Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c96150936.desrepfilter),tp,LOCATION_GRAVE,0,1,nil) end and Duel.IsExistingMatchingCard(c96150936.desrepfilter,tp,LOCATION_GRAVE,0,1,nil) end
return Duel.SelectEffectYesNo(tp,c,96) return Duel.SelectEffectYesNo(tp,c,96)
end end
function c96150936.desrepop(e,tp,eg,ep,ev,re,r,rp) function c96150936.desrepop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c96150936.desrepfilter),tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c96150936.desrepfilter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SendtoDeck(g,nil,2,REASON_EFFECT+REASON_REPLACE) Duel.SendtoDeck(g,nil,2,REASON_EFFECT+REASON_REPLACE)
end 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