forked from External/mage
Added damage done watcher.
This commit is contained in:
parent
03dcc4a9f6
commit
1668783ba2
5 changed files with 112 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue