replace clunky comparison using getId with isFriend

master
melvinzhang 2019-01-16 19:58:02 +08:00
parent 460a51da88
commit 8b8d590cd6
1 changed files with 1 additions and 2 deletions

View File

@ -957,8 +957,7 @@ public abstract class MagicCondition implements MagicMatchedCostEvent {
final MagicCardOnStack spell = (MagicCardOnStack)source;
final MagicGame game = source.getGame();
final MagicPhaseType phaseType = game.getPhase().getType();
return spell.isCast() &&
spell.getController().getId() == game.getTurnPlayer().getId() &&
return spell.isCast() && spell.isFriend(game.getTurnPlayer()) &&
(phaseType == MagicPhaseType.FirstMain || phaseType == MagicPhaseType.SecondMain);
}
};