Fix a "big typo" in the attack plans, thanks mimo.

This was SVN commit r14723.
This commit is contained in:
wraitii 2014-02-01 18:34:24 +00:00
parent ddf9d948cf
commit c9aeaa1612

View File

@ -980,7 +980,7 @@ m.CityAttack.prototype.update = function(gameState, HQ, events){
if (!ourUnit.hasClass("Siege"))
continue;
var collec = this.unitCollection.filter(API3.Filters.not(API3.Filters.byClass("Siege"))).filterNearest(ourUnit.position(), 5).toEntityArray();
var collec = this.unitCollection.filter(API3.Filters.not(API3.Filters.byClass("Siege"))).filterNearest(ourUnit.position(), 5);
if (collec.length === 0)
continue;
collec.attack(attacker.id())