Skip to content

Commit 8a8485f

Browse files
committed
hasPower logic error...
1 parent 8d3dfc0 commit 8a8485f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/bwapi/Game.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ public boolean canBuildHere(final TilePosition position, final UnitType type, fi
745745
}
746746

747747
// Power Check
748-
if (type.requiresPsi() && hasPower(lt, type)) {
748+
if (type.requiresPsi() && !hasPower(lt, type)) {
749749
return false;
750750
}
751751

0 commit comments

Comments
 (0)