Skip to content

Commit

Permalink
fix(runtime): store refactor regression in launchNuke
Browse files Browse the repository at this point in the history
DEV-393
  • Loading branch information
o4kapuk committed Sep 20, 2019
1 parent 1f3ed17 commit 34ddf78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/structures.js
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,7 @@ exports.make = function(_runtimeData, _intents, _register, _globals) {
if(Math.abs(tx-x) > C.NUKE_RANGE || Math.abs(ty-y) > C.NUKE_RANGE) {
return C.ERR_NOT_IN_RANGE;
}
if(!this.energy < this.energyCapacity || this.ghodium < this.ghodiumCapacity) {
if(this.energy < this.energyCapacity || this.ghodium < this.ghodiumCapacity) {
return C.ERR_NOT_ENOUGH_RESOURCES;
}

Expand Down

0 comments on commit 34ddf78

Please sign in to comment.