From 98a9c002399e95ef1a9cb403e3a55360efac22ca Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 2 Jun 2018 09:01:06 -0400 Subject: [PATCH] fixed Font of Mythos not working on players with hexproof (fixes #4995) --- Mage.Sets/src/mage/cards/f/FontOfMythos.java | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Mage.Sets/src/mage/cards/f/FontOfMythos.java b/Mage.Sets/src/mage/cards/f/FontOfMythos.java index 7fbcb715a3..a983e61767 100644 --- a/Mage.Sets/src/mage/cards/f/FontOfMythos.java +++ b/Mage.Sets/src/mage/cards/f/FontOfMythos.java @@ -25,7 +25,6 @@ * authors and should not be interpreted as representing official policies, either expressed * or implied, of BetaSteward_at_googlemail.com. */ - package mage.cards.f; import java.util.UUID; @@ -38,7 +37,7 @@ import mage.constants.Zone; import mage.game.Game; import mage.game.events.GameEvent; import mage.game.events.GameEvent.EventType; -import mage.target.TargetPlayer; +import mage.target.targetpointer.FixedTarget; /** * @@ -47,7 +46,7 @@ import mage.target.TargetPlayer; public final class FontOfMythos extends CardImpl { public FontOfMythos(UUID ownerId, CardSetInfo setInfo) { - super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{4}"); + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}"); this.addAbility(new FontOfMythosAbility()); } @@ -84,9 +83,7 @@ class FontOfMythosAbility extends TriggeredAbilityImpl { @Override public boolean checkTrigger(GameEvent event, Game game) { - this.getTargets().clear(); - this.addTarget(new TargetPlayer()); - getTargets().get(0).add(event.getPlayerId(),game); + this.getEffects().get(0).setTargetPointer(new FixedTarget(game.getActivePlayerId(), game)); return true; } @@ -95,4 +92,4 @@ class FontOfMythosAbility extends TriggeredAbilityImpl { return "At the beginning of each player's draw step, that player draws two additional cards."; } -} \ No newline at end of file +}