Commit 3175cfe5 authored by salix5's avatar salix5

fix

parent fbc5ee15
...@@ -81,16 +81,18 @@ function c44394295.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -81,16 +81,18 @@ function c44394295.activate(e,tp,eg,ep,ev,re,r,rp)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
else else
local cg1=Duel.GetFieldGroup(tp,loc,0) local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0) local cg2=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
if cg1:GetCount()>1 and cg2:IsExists(Card.IsFacedown,1,nil) local cg3=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
and Duel.IsPlayerCanSpecialSummon(tp) and not Duel.IsPlayerAffectedByEffect(tp,27581098) then if cg1:GetCount()>1 and cg3:IsExists(Card.IsFacedown,1,nil) and Duel.IsPlayerCanSpecialSummon(tp)
and not Duel.IsPlayerAffectedByEffect(tp,27581098) then
Duel.ConfirmCards(1-tp,cg1) Duel.ConfirmCards(1-tp,cg1)
Duel.ConfirmCards(1-tp,cg2) if bit.band(loc,LOCATION_DECK)==LOCATION_DECK and not Duel.IsPlayerAffectedByEffect(tp,EFFECT_CANNOT_DISCARD_DECK) then
Duel.ShuffleHand(tp) Duel.ConfirmCards(1-tp,cg2)
if bit.band(loc,LOCATION_DECK)==LOCATION_DECK then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
end end
Duel.ConfirmCards(1-tp,cg3)
Duel.ShuffleHand(tp)
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