Commit e067c4ea authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix Contact with Gusto (#2011)

parent beb4dfe4
...@@ -24,12 +24,16 @@ function c83544697.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -24,12 +24,16 @@ function c83544697.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g1,2,0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,g1,2,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g2,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g2,1,0,0)
end end
function c83544697.filter2(c,tp)
return c:IsOnField() and c:IsControler(tp)
end
function c83544697.activate(e,tp,eg,ep,ev,re,r,rp) function c83544697.activate(e,tp,eg,ep,ev,re,r,rp)
local ex,g1=Duel.GetOperationInfo(0,CATEGORY_TODECK) local g=Duel.GetTargetsRelateToChain()
local ex,g2=Duel.GetOperationInfo(0,CATEGORY_DESTROY) local g1=g:Filter(Card.IsLocation,nil,LOCATION_GRAVE)
if g1:GetFirst():IsRelateToEffect(e) and g1:GetNext():IsRelateToEffect(e) then local g2=g:Filter(c83544697.filter2,nil,1-tp)
Duel.SendtoDeck(g1,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) if g1:GetCount()==2 and Duel.SendtoDeck(g1,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)==2 then
if g2:GetFirst():IsRelateToEffect(e) then local ct=Duel.GetOperatedGroup():FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA)
if ct==2 and g2:GetCount()>0 then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Destroy(g2,REASON_EFFECT) Duel.Destroy(g2,REASON_EFFECT)
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