mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
* Game log - Added message about destroyed permanents.
This commit is contained in:
parent
95ce886534
commit
8855489c7c
1 changed files with 5 additions and 0 deletions
|
@ -801,6 +801,11 @@ public abstract class PermanentImpl<T extends PermanentImpl<T>> extends CardImpl
|
|||
|
||||
if (!game.replaceEvent(GameEvent.getEvent(EventType.DESTROY_PERMANENT, objectId, sourceId, controllerId, noRegen ? 1 : 0))) {
|
||||
if (moveToZone(Zone.GRAVEYARD, sourceId, game, false)) {
|
||||
if (this.getCardType().contains(CardType.CREATURE)) {
|
||||
game.informPlayers(new StringBuilder(this.getName()).append(" died").toString());
|
||||
} else {
|
||||
game.informPlayers(new StringBuilder(this.getName()).append(" was destroyed").toString());
|
||||
}
|
||||
game.fireEvent(GameEvent.getEvent(EventType.DESTROYED_PERMANENT, objectId, sourceId, controllerId));
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue