Commit 26edb3fe authored by TanakaKotoha's avatar TanakaKotoha

daniaozhuanzhuanzhuan

parent 761367ca
Pipeline #2431 passed with stages
in 44 minutes and 16 seconds
......@@ -97,10 +97,18 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local th=tt:RandomSelect(tp,1)
Duel.Destroy(th,REASON_EFFECT)
Duel.RegisterFlagEffect(tp,m+100,0,0,1)
if Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.GetFieldGroup(tp,0,LOCATION_HAND)>0 then
local g=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0)
local sg=g:RandomSelect(1-tp,1)
Duel.Destroy(sg,REASON_EFFECT)
end
end
end
Duel.RaiseEvent(c,EVENT_CUSTOM+m,re,r,rp,ep,nil)
end
function cm.exfilter(c)
return c:IsCode(12083005) and not c:IsDisabled()
end
function cm.rtdcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
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