Commit da4b0990 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix (#1828)

parent 8c486d7e
...@@ -26,9 +26,7 @@ function c22747316.filter(c,code) ...@@ -26,9 +26,7 @@ function c22747316.filter(c,code)
end end
function c22747316.activate(e,tp,eg,ep,ev,re,r,rp) function c22747316.activate(e,tp,eg,ep,ev,re,r,rp)
local code=re:GetHandler():GetCode() local code=re:GetHandler():GetCode()
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) and Duel.Destroy(eg,REASON_EFFECT)~=0 then
Duel.Destroy(eg,REASON_EFFECT)
end
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c22747316.filter),tp,LOCATION_GRAVE,0,nil,code) local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c22747316.filter),tp,LOCATION_GRAVE,0,nil,code)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(22747316,0)) then if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(22747316,0)) then
Duel.BreakEffect() Duel.BreakEffect()
...@@ -37,4 +35,5 @@ function c22747316.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,4 +35,5 @@ function c22747316.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
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