Commit fcd0ef7e authored by nekrozar's avatar nekrozar

fix

parent 3cee800f
......@@ -44,12 +44,12 @@ end
function c22593417.hdop(e,tp,eg,ep,ev,re,r,rp)
local hg=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
local ct=math.min(hg:GetCount(),2)
if ct<=0 then return false end
if ct<=0 then return end
local ct2=1
if ct>1 then ct2=Duel.AnnounceNumber(tp,1,2) end
local g=hg:RandomSelect(tp,ct2)
local ct3=Duel.SendtoGrave(g,REASON_EFFECT+REASON_DISCARD)
if ct3<=0 then return false end
if ct3<=0 then return end
Duel.BreakEffect()
Duel.DiscardHand(1-tp,nil,ct3,ct3,REASON_EFFECT+REASON_DISCARD)
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