Commit 876b26e3 authored by salix5's avatar salix5

fix 大逆転クイズ, SR吹持童子

■自分のデッキの枚数が0枚の場合、このカードを発動する事はできません。
parent 056a1c27
......@@ -37,6 +37,7 @@ function c50482813.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c50482813.thop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetMatchingGroupCount(c50482813.cfilter,tp,LOCATION_MZONE,0,aux.ExceptThisCard(e))
Duel.ConfirmDecktop(tp,ct)
local g=Duel.GetDecktopGroup(tp,ct)
if #g>0 then
Duel.DisableShuffleCheck()
......
......@@ -5,6 +5,7 @@ function c5990062.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c5990062.cost)
e1:SetTarget(c5990062.target)
e1:SetOperation(c5990062.activate)
c:RegisterEffect(e1)
end
......@@ -17,6 +18,9 @@ function c5990062.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return g:GetCount()>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
end
function c5990062.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetDecktopGroup(tp,1)
local tc=g:GetFirst()
......
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