fix small bugs in two cards

Fix #12112
This commit is contained in:
Susucre 2024-04-12 15:44:04 +02:00
parent 72a2e32d1c
commit 5fb1651403
2 changed files with 10 additions and 4 deletions

View file

@ -1,27 +1,32 @@
package mage.cards.r;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.LoyaltyAbility;
import mage.abilities.effects.common.DamageAllEffect;
import mage.abilities.effects.common.DamageMultiEffect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.constants.TargetController;
import mage.filter.common.FilterCreaturePermanent;
import mage.target.common.TargetAnyTargetAmount;
import java.util.UUID;
/**
*
* @author TheElk801
*/
public final class RalCallerOfStorms extends CardImpl {
public static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature your opponents control");
static {
filter.add(TargetController.OPPONENT.getControllerPredicate());
}
public RalCallerOfStorms(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{4}{U}{R}");

View file

@ -76,6 +76,7 @@ class RareBGoneEffect extends OneShotEffect {
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(filterPermanent, playerId, game)) {
permanent.sacrifice(source, game);
}
game.getState().processAction(game);
Cards cards = player.getHand();
player.revealCards(source, cards, game);
player.discard(new CardsImpl(cards.getCards(filterCard, game)), false, source, game);