Commit 5574a96c authored by wind2009's avatar wind2009

Fix 超巨大戦艦 メタル・スレイブ

parent da0b23b9
Pipeline #41120 passed with stages
in 5 minutes and 5 seconds
No preview for this file type
...@@ -61,17 +61,17 @@ function s.cfilter(c,e) ...@@ -61,17 +61,17 @@ function s.cfilter(c,e)
return c:IsFaceup() and c:IsCanBeEffectTarget(e) return c:IsFaceup() and c:IsCanBeEffectTarget(e)
end end
function s.desfilter(c) function s.desfilter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x15) return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsSetCard(0x15) and c:IsControler(tp)
end end
function s.fselect(g) function s.fselect(g,tp)
return g:IsExists(s.desfilter,1,nil) return g:IsExists(s.desfilter,1,nil,tp)
end end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
local rg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,e) local rg=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,e)
if chk==0 then return rg:CheckSubGroup(s.fselect,2,2) end if chk==0 then return rg:CheckSubGroup(s.fselect,2,2,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local sg=rg:SelectSubGroup(tp,s.fselect,false,2,2) local sg=rg:SelectSubGroup(tp,s.fselect,false,2,2,tp)
Duel.SetTargetCard(sg) Duel.SetTargetCard(sg)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,#sg,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,#sg,0,0)
end 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