Commit 8cbf204d authored by mercury233's avatar mercury233 Committed by GitHub

update Reversal Quiz (#2842)

parent 48c8b61b
......@@ -15,11 +15,14 @@ end
function c5990062.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_ONFIELD,0)
g:RemoveCard(e:GetHandler())
if chk==0 then return g:GetCount()>0 and not g:IsExists(c5990062.cfilter,1,nil) end
if chk==0 then return g:FilterCount(Card.IsLocation,nil,LOCATION_HAND)>0
and g:FilterCount(Card.IsLocation,nil,LOCATION_ONFIELD)>0
and not g:IsExists(c5990062.cfilter,1,nil) end
Duel.SendtoGrave(g,REASON_COST)
end
function c5990062.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
if chk==0 then return Duel.GetLP(tp)~=Duel.GetLP(1-tp)
and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>0 end
end
function c5990062.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetDecktopGroup(tp,1)
......
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