Commit 780decc1 authored by mercury233's avatar mercury233 Committed by GitHub

fix 王家の眠る谷-ネクロバレー

parent f2d796b8
...@@ -85,11 +85,11 @@ function c47355498.discheck(ev,category,re,im0,im1) ...@@ -85,11 +85,11 @@ function c47355498.discheck(ev,category,re,im0,im1)
end end
return false return false
end end
function c47355498.discheck2(ev,category) function c47355498.discheck2(ev,category,re)
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 v==LOCATION_GRAVE and ct>0 and tg then if v==LOCATION_GRAVE and ct>0 and tg then
return tg:IsExists(c47355498.disfilter,1,nil) return tg:IsExists(c47355498.disfilter,1,nil,re)
end end
return false return false
end end
...@@ -104,6 +104,6 @@ function c47355498.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,6 +104,6 @@ function c47355498.disop(e,tp,eg,ep,ev,re,r,rp)
if not res and c47355498.discheck(ev,CATEGORY_TODECK,re,im0,im1) then res=true end if not res and c47355498.discheck(ev,CATEGORY_TODECK,re,im0,im1) then res=true end
if not res and c47355498.discheck(ev,CATEGORY_TOEXTRA,re,im0,im1) then res=true end if not res and c47355498.discheck(ev,CATEGORY_TOEXTRA,re,im0,im1) then res=true end
if not res and c47355498.discheck(ev,CATEGORY_LEAVE_GRAVE,re,im0,im1) then res=true end if not res and c47355498.discheck(ev,CATEGORY_LEAVE_GRAVE,re,im0,im1) then res=true end
if not res and c47355498.discheck2(ev,CATEGORY_REMOVE) then res=true end if not res and c47355498.discheck2(ev,CATEGORY_REMOVE,re) then res=true end
if res then Duel.NegateEffect(ev) end if res then Duel.NegateEffect(ev) end
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