Commit 223798d4 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix Gravekeeper's Oracle (#1772)

parent ec37c6e8
...@@ -141,11 +141,16 @@ function c25524823.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -141,11 +141,16 @@ function c25524823.operation(e,tp,eg,ep,ev,re,r,rp)
end end
if bit.band(sel,2)~=0 then if bit.band(sel,2)~=0 then
local g=Duel.GetMatchingGroup(c25524823.filter,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(c25524823.filter,tp,0,LOCATION_MZONE,nil)
if g:GetCount()>0 then
Duel.BreakEffect()
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
end
if bit.band(sel,4)~=0 then if bit.band(sel,4)~=0 then
local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(Card.IsFaceup,tp,0,LOCATION_MZONE,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then
Duel.BreakEffect()
while tc do while tc do
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
...@@ -159,4 +164,5 @@ function c25524823.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -159,4 +164,5 @@ function c25524823.operation(e,tp,eg,ep,ev,re,r,rp)
tc=g:GetNext() tc=g:GetNext()
end end
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