mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
- Fixed #6091
This commit is contained in:
parent
447002ee67
commit
88ca9b1829
1 changed files with 16 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue