Disallow gaia to change state, i.e., gaia can't be defeated or win
Reviewed By: Freagarach Differential Revision: D3013 Fixes #5140 This was SVN commit r24064.
This commit is contained in:
1 parent
840cc18277
commit
bb5776c079
1 file changed
+6
@@ -435,6 +435,12 @@ Player.prototype.SetState = function(newState, message)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.playerID)
|
||||
{
|
||||
warn("Gaia can't change state.");
|
||||
return;
|
||||
}
|
||||
|
||||
this.state = newState;
|
||||
|
||||
let won = newState == "won";
|
||||
|
||||
Reference in new issue
Block a user