Ticket #3221: ticket3221.patch
File ticket3221.patch, 923 bytes (added by , 9 years ago) |
---|
-
binaries/data/mods/public/simulation/components/UnitAI.js
1796 1796 prepare = Math.max(prepare, repeatLeft); 1797 1797 } 1798 1798 1799 this.oldAttack = this.order.data.attackType; 1799 1800 // add prefix + no capital first letter for attackType 1800 1801 var animationName = "attack_" + this.order.data.attackType.toLowerCase(); 1801 1802 if (this.IsFormationMember()) … … 1897 1898 return; 1898 1899 } 1899 1900 1900 this.oldAttackType = this.order.data.attackType;1901 1901 // Can't reach it, no longer owned by enemy, or it doesn't exist any more - give up 1902 1902 // Except if in WalkAndFight mode where we look for more ennemies around before moving again 1903 1903 if (this.FinishOrder())