3030s .listed_names = {CARD_EXCHANGE_SPIRIT }
3131function s .destg (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
3232 if chk == 0 then return true end
33- local g = Duel .GetMatchingGroup (nil ,tp ,0 ,LOCATION_MZONE ,nil ):GetMaxGroup (Card .GetAttack )
33+ local g = Duel .GetMatchingGroup (Card . IsFaceup ,tp ,0 ,LOCATION_MZONE ,nil ):GetMaxGroup (Card .GetAttack )
3434 Duel .SetOperationInfo (0 ,CATEGORY_DESTROY ,g ,1 ,0 ,0 )
3535end
3636function s .desop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
37- local g = Duel .GetMatchingGroup (nil ,tp ,0 ,LOCATION_MZONE ,nil )
37+ local g = Duel .GetMatchingGroup (Card . IsFaceup ,tp ,0 ,LOCATION_MZONE ,nil )
3838 if # g < 1 then return end
3939 local tg = g :GetMaxGroup (Card .GetAttack )
4040 if # tg > 1 then
@@ -57,7 +57,7 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
5757 if chk == 0 then return Duel .IsExistingTarget (s .thfilter ,tp ,LOCATION_GRAVE ,0 ,1 ,nil ) end
5858 Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_ATOHAND )
5959 local g = Duel .SelectTarget (tp ,s .thfilter ,tp ,LOCATION_GRAVE ,0 ,1 ,1 ,nil )
60- Duel .SetOperationInfo (0 ,CATEGORY_TOHAND ,g ,1 ,0 ,0 )
60+ Duel .SetOperationInfo (0 ,CATEGORY_TOHAND ,g ,1 ,tp ,0 )
6161end
6262function s .thop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
6363 local tc = Duel .GetFirstTarget ()
0 commit comments