Commit 0663958b authored by Tianchenglipu's avatar Tianchenglipu

Update utility.lua

当使用持有叠光单位的怪兽作为超量素材时,那些超量素材的叠光单位竟然会留在怪兽区域,既不下去又不当怪兽,而且仅当原先拥有他们的怪兽从那只超量怪兽下面离开时,他们才会送去墓地。所以稍稍添加一些,反正无影响,也可以让一些人的DIY脑洞得到更大的自由度……
parent 49bc68b2
......@@ -199,6 +199,14 @@ function Auxiliary.XyzOperation(f,lv,minc,maxc)
Duel.Overlay(c,og)
else
local mg=Duel.SelectXyzMaterial(tp,c,f,lv,minc,maxc)
local sg=Group.CreateGroup()
local tc=mg:GetFirst()
while tc do
local sg1=tc:GetOverlayGroup()
sg:Merge(sg1)
tc=mg:GetNext()
end
Duel.SendtoGrave(sg,REASON_RULE)
c:SetMaterial(mg)
Duel.Overlay(c,mg)
end
......@@ -240,6 +248,14 @@ function Auxiliary.XyzOperation2(f,lv,minc,maxc,alterf,desc,op)
Duel.Overlay(c,mg)
else
local mg=Duel.SelectXyzMaterial(tp,c,f,lv,minc,maxc)
local sg=Group.CreateGroup()
local tc=mg:GetFirst()
while tc do
local sg1=tc:GetOverlayGroup()
sg:Merge(sg1)
tc=mg:GetNext()
end
Duel.SendtoGrave(sg,REASON_RULE)
c:SetMaterial(mg)
Duel.Overlay(c,mg)
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