Commit 8265a41c authored by wind2009's avatar wind2009 Committed by GitHub

Fix No.1 インフェクション・バアル・ゼブル (#2126)

parent 36de4605
...@@ -53,9 +53,11 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,9 +53,11 @@ function s.atop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.GetFieldGroup(tp,0,LOCATION_GRAVE):Select(tp,1,1,nil) local g=Duel.GetFieldGroup(tp,0,LOCATION_GRAVE)
if #g>0 then if aux.NecroValleyNegateCheck(g) then return end
Duel.Overlay(c,g) local tg=g:Select(tp,1,1,nil)
if #tg>0 then
Duel.Overlay(c,tg)
end end
end end
function s.tgcon(e,tp,eg,ep,ev,re,r,rp) function s.tgcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -57,7 +57,11 @@ function c18678554.matop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,7 +57,11 @@ function c18678554.matop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then if tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(Card.IsCanOverlay),tp,0,LOCATION_GRAVE,1,1,nil) local g=Duel.GetFieldGroup(tp,0,LOCATION_GRAVE)
Duel.Overlay(tc,g) if aux.NecroValleyNegateCheck(g) then return end
local tg=g:Select(tp,1,1,nil)
if #tg>0 then
Duel.Overlay(tc,tg)
end
end 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