backport.structureIdle.js

Overview

Fixes a bug in Warzone 3.1 where structureIdle() didn't check the construction status of a building before returning true.

Availability

 Requires backport.js

Compatible with all versions of Warzone from 3.1 early alpha releases and above.

The backport will be applied for all versions of the game, but won't adversely affect future versions should the bug be fixed.

Notes

This backport checks that the structure's .status == BUILT before allowing a return value of true.

There may still be issues, however, because a structure's status doesn't get immediately updated when you tell it to build or attack something.

Script

  File Modified

JavaScript File structureIdle_0.1.js

Mar 13, 2012 by Aubergine

See also

Â