From 88ca9b1829327c8ef92d4ea4372b70a57860799d Mon Sep 17 00:00:00 2001 From: jeffwadsworth Date: Fri, 13 Dec 2019 14:41:39 -0600 Subject: [PATCH] - Fixed #6091 --- .../mage/cards/d/DrakusethMawOfFlames.java | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/cards/d/DrakusethMawOfFlames.java b/Mage.Sets/src/mage/cards/d/DrakusethMawOfFlames.java index dc1bb3e29ee..a5f9a58f573 100644 --- a/Mage.Sets/src/mage/cards/d/DrakusethMawOfFlames.java +++ b/Mage.Sets/src/mage/cards/d/DrakusethMawOfFlames.java @@ -15,8 +15,10 @@ import mage.game.Game; import mage.game.permanent.Permanent; import mage.players.Player; import mage.target.common.TargetAnyTarget; - import java.util.UUID; +import mage.filter.common.FilterCreaturePlayerOrPlaneswalker; +import mage.filter.predicate.mageobject.AnotherTargetPredicate; +import mage.target.Target; /** * @author TheElk801 @@ -36,8 +38,16 @@ public final class DrakusethMawOfFlames extends CardImpl { // Whenever Drakuseth, Maw of Flames attacks, it deals 4 damage to any target and 3 damage to each of up to two other targets. Ability ability = new AttacksTriggeredAbility(new DrakusethMawOfFlamesEffect(), false); - ability.addTarget(new TargetAnyTarget().withChooseHint("to deal 4 damage")); - ability.addTarget(new TargetAnyTarget(0, 2).withChooseHint("to deal 3 damage")); + Target target = new TargetAnyTarget().withChooseHint("to deal 4 damage"); + target.setTargetTag(1); + ability.addTarget(target); + FilterCreaturePlayerOrPlaneswalker filter = new FilterCreaturePlayerOrPlaneswalker("any target"); + filter.getCreatureFilter().add(new AnotherTargetPredicate(2, true)); + filter.getPlayerFilter().add(new AnotherTargetPredicate(2, true)); + filter.getPlaneswalkerFilter().add(new AnotherTargetPredicate(2, true)); + target = new TargetAnyTarget(0, 2, filter).withChooseHint("to deal 3 damage"); + target.setTargetTag(2); + ability.addTarget(target); this.addAbility(ability); } @@ -55,7 +65,8 @@ class DrakusethMawOfFlamesEffect extends OneShotEffect { DrakusethMawOfFlamesEffect() { super(Outcome.Benefit); - staticText = "it deals 4 damage to any target and 3 damage to each of up to two other targets."; + staticText = "it deals 4 damage to any target and 3 damage to each of " + + "up to two other targets."; } private DrakusethMawOfFlamesEffect(final DrakusethMawOfFlamesEffect effect) { @@ -90,4 +101,4 @@ class DrakusethMawOfFlamesEffect extends OneShotEffect { return; } } -} \ No newline at end of file +}