Commit 510809cd authored by woodee's avatar woodee

fix

Should be able to activated when a player cannot draw but has a hand count of 0.
parent 0fc70b29
......@@ -61,7 +61,10 @@ function c69840739.repop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c69840739.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return (Duel.IsPlayerCanDraw(tp) and Duel.IsPlayerCanDraw(1-tp))
local h1=Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)
local h2=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)
if chk==0 then return (Duel.IsPlayerCanDraw(tp) or h1==0)
and (Duel.IsPlayerCanDraw(1-tp) or h2==0)
and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_HAND,LOCATION_HAND,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,PLAYER_ALL,LOCATION_HAND)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,PLAYER_ALL,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