- Fixed a NPE in canPlayLand AI.

This commit is contained in:
Sloth
2013-06-23 12:11:25 +00:00
parent 5f3f859b81
commit e63d418b03

View File

@@ -1833,7 +1833,7 @@ public class Player extends GameEntity implements Comparable<Player> {
//Gaea's Touch //Gaea's Touch
int adjMaxForests = 0; int adjMaxForests = 0;
int forestsPlayed = this.numBasicForestsPlayed; int forestsPlayed = this.numBasicForestsPlayed;
if (land.isBasicLand() && land.isType("Forest")) if (land != null && land.isBasicLand() && land.isType("Forest"))
forestsPlayed++; forestsPlayed++;
for (String keyword : this.getKeywords()) { for (String keyword : this.getKeywords()) {