* Epic - Added info message that player can't cast spell because of Epic effect.

This commit is contained in:
LevelX2 2014-05-11 20:40:02 +02:00
parent e93cd580dd
commit bfa0922dc2

View file

@ -102,6 +102,11 @@ class EpicReplacementEffect extends ReplacementEffectImpl<EpicReplacementEffect>
@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
MageObject mageObject = game.getObject(source.getSourceId());
Player controller = game.getPlayer(source.getControllerId());
if (controller != null && mageObject != null) {
game.informPlayer(controller, "For the rest of the game, you can't cast spells (Epic - " + mageObject.getName() +")");
}
return true;
}