mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
fixed Font of Mythos not working on players with hexproof (fixes #4995)
This commit is contained in:
parent
b1625291d7
commit
98a9c00239
1 changed files with 4 additions and 7 deletions
|
@ -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.";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue