Commit 01bf3e6a authored by JoyJ's avatar JoyJ

fix extra action

parent 9ee6bcc2
......@@ -131,7 +131,7 @@ function CUNGUI.ruleop(e,tp,eg,ep,ev,re,r,rp)
g=g:RandomSelect(tp,1)
Duel.Exile(g,REASON_RULE)
local add = nil
while add==nil or add:IsExtraDeckMonster(add) do
while add==nil or add:IsExtraDeckMonster() do
local codeIndex=math.random(#CUNGUI.forbidden)
add=Duel.CreateToken(tp,CUNGUI.forbidden[codeIndex])
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