Commit 5d48b99d authored by GuGu's avatar GuGu

Update c74563610.lua

parent 25ee815e
......@@ -73,22 +73,14 @@ function c74563610.target(e,tp,eg,ep,ev,re,r,rp,chk)
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
local count=sg:GetCount()
local count1=0
if count%3~=0 then
count1=count//3*2+1
else
count1=count//3*2
end
count1=math.ceil(count/3*2)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,count1,0,0)
end
function c74563610.activate(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
local count=sg:GetCount()
local count1=0
if count%3~=0 then
count1=count//3*2+1
else
count1=count//3*2
end
count1=math.ceil(count/3*2)
local sg1=sg:RandomSelect(1-tp,count1)
Duel.Destroy(sg1,REASON_EFFECT)
end
\ No newline at end of file
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