Commit 9fbd6b41 authored by DailyShana's avatar DailyShana Committed by GitHub

Revert "fix Nine Branches of the Yang Zing" (#509)

parent 8d95e511
...@@ -30,14 +30,16 @@ end ...@@ -30,14 +30,16 @@ end
function c57831349.activate(e,tp,eg,ep,ev,re,r,rp) function c57831349.activate(e,tp,eg,ep,ev,re,r,rp)
local ec=re:GetHandler() local ec=re:GetHandler()
Duel.NegateActivation(ev) Duel.NegateActivation(ev)
ec:CancelToGrave() if ec:IsRelateToEffect(re) then
if Duel.SendtoDeck(ec,nil,2,REASON_EFFECT)~=0 and ec:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then ec:CancelToGrave()
local g=Duel.GetMatchingGroup(c57831349.desfilter,tp,LOCATION_ONFIELD,0,e:GetHandler()) if Duel.SendtoDeck(ec,nil,2,REASON_EFFECT)~=0 and ec:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then
if g:GetCount()>0 then local g=Duel.GetMatchingGroup(c57831349.desfilter,tp,LOCATION_ONFIELD,0,e:GetHandler())
Duel.BreakEffect() if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.BreakEffect()
local sg=g:Select(tp,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
Duel.Destroy(sg,REASON_EFFECT) local sg=g:Select(tp,1,1,nil)
Duel.Destroy(sg,REASON_EFFECT)
end
end end
end end
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