mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Added informing players about damage prevented.
This commit is contained in:
parent
11fab4b4e9
commit
4da3f0c62d
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ public class PreventAllCombatDamageEffect extends PreventionEffectImpl<PreventAl
|
|||
if (!game.replaceEvent(preventEvent)) {
|
||||
int damage = event.getAmount();
|
||||
event.setAmount(0);
|
||||
game.informPlayers("Damage has been prevented: " + damage);
|
||||
game.fireEvent(GameEvent.getEvent(GameEvent.EventType.PREVENTED_DAMAGE, source.getFirstTarget(), source.getId(), source.getControllerId(), damage));
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue