Commit 1b9c59ba authored by salix5's avatar salix5
parent 35778aa8
......@@ -69,15 +69,14 @@ function c47075569.thop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.Destroy(dg,REASON_EFFECT)
local g=Duel.GetMatchingGroup(c47075569.thfilter,tp,LOCATION_DECK,0,nil)
if ct==0 or g:GetCount()==0 then return end
if ct>g:GetClassCount(Card.GetCode) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g1=g:Select(tp,1,1,nil)
if ct==2 then
g:Remove(Card.IsCode,nil,g1:GetFirst():GetCode())
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g2=g:Select(tp,1,1,nil)
g1:Merge(g2)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g2=g:Select(tp,1,1,nil)
g1:Merge(g2)
end
Duel.SendtoHand(g1,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g1)
......
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