Commit 5e8361cf authored by GuGu's avatar GuGu

Update c86379088.lua

parent b4750481
Pipeline #42281 passed with stage
in 26 seconds
......@@ -158,34 +158,16 @@ function c86379088.dfilter2(c,tp)
end
function c86379088.dcost(e,tp,eg,ep,ev,re,r,rp,chk)
local dg=Group.CreateGroup()
if chk==0 then
local g=Duel.GetMatchingGroup(c86379088.dfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if g:GetCount()<=0 then return false end
local tc=g:GetFirst()
while tc do
local og=tc:GetOverlayGroup()
dg:Merge(og)
tc=g:GetNext()
end
return dg:GetCount()>0
end
--[[ local gt=Duel.GetMatchingGroupCount(c86379088.dfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil)
local g=Duel.GetMatchingGroup(c86379088.dfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
local dg=Group.CreateGroup()
local gt=Duel.GetMatchingGroupCount(c86379088.dfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil)
local g=Duel.GetMatchingGroup(c86379088.dfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp)
if g:GetCount()<=0 then return false end
local tc=g:GetFirst()
while tc do
local og=tc:GetOverlayGroup()
dg:Merge(og)
tc=g:GetNext()
end
local dt=dg:GetCount()
if gt<dt then
dt=gt
end
if dt>3 then
dt=3
end]]
if chk==0 then return dg:GetCount()>0 and gt>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVEXYZ)
local cg=dg:Select(tp,1,3,nil)
......
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