Commit 0fa2a87e authored by 想象力很好的毛虫's avatar 想象力很好的毛虫 Committed by GitHub

Fix ARG☆S-GiantKilling (#2917)

parent 5ae97f80
...@@ -67,18 +67,18 @@ end ...@@ -67,18 +67,18 @@ end
function s.filter(c,e) function s.filter(c,e)
return c:IsAbleToHand() and c:IsCanBeEffectTarget(e) return c:IsAbleToHand() and c:IsCanBeEffectTarget(e)
end end
function s.thfilters(c) function s.thfilters(c,tp)
return c:IsFaceup() and c:IsAllTypes(TYPE_CONTINUOUS|TYPE_TRAP) and c:IsSetCard(0x1c1) return c:IsControler(tp) and c:IsFaceup() and c:IsAllTypes(TYPE_CONTINUOUS|TYPE_TRAP) and c:IsSetCard(0x1c1)
end end
function s.sgselect(g) function s.sgselect(g,tp)
return g:IsExists(s.thfilters,1,nil) return g:IsExists(s.thfilters,1,nil,tp)
end end
function s.thtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.thtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,e) local g=Duel.GetMatchingGroup(s.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,e)
if chkc then return false end if chkc then return false end
if chk==0 then return g:CheckSubGroup(s.sgselect,2,2) end if chk==0 then return g:CheckSubGroup(s.sgselect,2,2,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local sg=g:SelectSubGroup(tp,s.sgselect,false,2,2) local sg=g:SelectSubGroup(tp,s.sgselect,false,2,2,tp)
Duel.SetTargetCard(sg) Duel.SetTargetCard(sg)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,sg,#sg,0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,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