AI won't have any more fun when the game is over.

This commit is contained in:
Maxmtg
2012-10-24 18:32:36 +00:00
parent 6baf2c0289
commit 4823f265eb

View File

@@ -695,6 +695,9 @@ public class PhaseHandler extends MyObservable implements java.io.Serializable {
* </p> * </p>
*/ */
public final void passPriority() { public final void passPriority() {
// stop game if it's outcome is clear
if ( game.isGameOver() ) return;
final Player actingPlayer = this.getPriorityPlayer(); final Player actingPlayer = this.getPriorityPlayer();
final Player firstAction = this.getFirstPriority(); final Player firstAction = this.getFirstPriority();