forked from External/mage
* Fixed a problem that watcher added from cards are not reset between games of a match (fixes #3228).
This commit is contained in:
parent
c0f02259ec
commit
09e4435a89
4 changed files with 15 additions and 22 deletions
|
|
@ -981,6 +981,7 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
}
|
||||
}
|
||||
getState().setChoosingPlayerId(null);
|
||||
state.getWatchers().reset(); // watcher objects from cards are reused during match so reset all card watchers already added
|
||||
Watchers watchers = state.getWatchers();
|
||||
// add default watchers
|
||||
for (UUID playerId : state.getPlayerList(startingPlayerId)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue