Commit 2076273d authored by Amiya's avatar Amiya

修复

parent e91c5fde
Pipeline #43631 passed with stages
in 2 minutes and 21 seconds
...@@ -31,7 +31,7 @@ function s.initial_effect(c) ...@@ -31,7 +31,7 @@ function s.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function s.tgfilter(c) function s.tgfilter(c)
return c:IsFaceup() and c:IsAbleToGrave() return c:IsFaceupEx() and c:IsAbleToGrave()
end end
function s.gcheck(g,tp) function s.gcheck(g,tp)
return g:FilterCount(Card.IsType,nil,TYPE_MONSTER)==3 return g:FilterCount(Card.IsType,nil,TYPE_MONSTER)==3
...@@ -39,9 +39,9 @@ function s.gcheck(g,tp) ...@@ -39,9 +39,9 @@ function s.gcheck(g,tp)
or g:FilterCount(Card.IsType,nil,TYPE_TRAP)==3 or g:FilterCount(Card.IsType,nil,TYPE_TRAP)==3
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(s.tgfilter,tp,LOCATION_ONFIELD,0,e:GetHandler()) local g=Duel.GetMatchingGroup(s.tgfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,e:GetHandler())
if chk==0 then return g:CheckSubGroup(s.gcheck,3,3,tp) end if chk==0 then return g:CheckSubGroup(s.gcheck,3,3,tp) end
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,3,tp,LOCATION_ONFIELD) Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,3,tp,LOCATION_HAND+LOCATION_ONFIELD)
end end
function s.spfilter(c,e,tp) function s.spfilter(c,e,tp)
if not c:IsFaceupEx() or not c:IsSetCard(0x1144) then return false end if not c:IsFaceupEx() or not c:IsSetCard(0x1144) then return false end
...@@ -53,7 +53,7 @@ function s.spfilter(c,e,tp) ...@@ -53,7 +53,7 @@ function s.spfilter(c,e,tp)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetMatchingGroup(s.tgfilter,tp,LOCATION_ONFIELD,0,aux.ExceptThisCard(e)) local g=Duel.GetMatchingGroup(s.tgfilter,tp,LOCATION_HAND+LOCATION_ONFIELD,0,aux.ExceptThisCard(e))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:SelectSubGroup(tp,s.gcheck,false,3,3) local sg=g:SelectSubGroup(tp,s.gcheck,false,3,3)
if sg:GetCount()>0 and Duel.SendtoGrave(sg,nil,REASON_EFFECT)~=0 if sg:GetCount()>0 and Duel.SendtoGrave(sg,nil,REASON_EFFECT)~=0
......
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