mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
* Epic - Added info message that player can't cast spell because of Epic effect.
This commit is contained in:
parent
e93cd580dd
commit
bfa0922dc2
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue