Added damage done watcher.

This commit is contained in:
LevelX2 2015-06-20 19:53:41 +02:00
parent 03dcc4a9f6
commit 1668783ba2
5 changed files with 112 additions and 2 deletions

View file

@ -69,7 +69,11 @@ public class MageObjectReference implements Comparable<MageObjectReference>, Ser
if (mageObject != null) {
this.zoneChangeCounter = mageObject.getZoneChangeCounter(game);
} else {
throw new IllegalArgumentException("The provided sourceId is not connected to an object in the game");
if (game.getPlayerList().contains(sourceId)) {
this.zoneChangeCounter = 0;
} else {
throw new IllegalArgumentException("The provided sourceId is not connected to an object in the game");
}
}
}