Commit 2d4ca8ff authored by Tachibana's avatar Tachibana

eme

parent 9c70f1e5
Pipeline #7133 passed with stages
in 28 minutes and 24 seconds
...@@ -148,7 +148,8 @@ function c19500029.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -148,7 +148,8 @@ function c19500029.desop(e,tp,eg,ep,ev,re,r,rp)
local link=c:GetLinkedGroupCount() local link=c:GetLinkedGroupCount()
local cg=e:GetHandler():GetLinkedGroup() local cg=e:GetHandler():GetLinkedGroup()
local coun=Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD) local coun=Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)
local ct=math.min(link,coun-link) if math.floor(coun/2)>=link then coun=coun-link else coun=math.floor(coun/2) end
local ct=math.min(link,coun)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,c19500029.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,ct,nil,cg) local g=Duel.SelectMatchingCard(tp,c19500029.desfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,ct,nil,cg)
local cdt=Duel.Destroy(g,REASON_EFFECT) local cdt=Duel.Destroy(g,REASON_EFFECT)
......
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