Ticket #3221: ticket3221.patch

File ticket3221.patch, 923 bytes (added by mimo, 9 years ago)
  • binaries/data/mods/public/simulation/components/UnitAI.js

     
    17961796                        prepare = Math.max(prepare, repeatLeft);
    17971797                    }
    17981798
     1799                    this.oldAttack = this.order.data.attackType;
    17991800                    // add prefix + no capital first letter for attackType
    18001801                    var animationName = "attack_" + this.order.data.attackType.toLowerCase();
    18011802                    if (this.IsFormationMember())
     
    18971898                        return;
    18981899                    }
    18991900
    1900                     this.oldAttackType = this.order.data.attackType;
    19011901                    // Can't reach it, no longer owned by enemy, or it doesn't exist any more - give up
    19021902                    // Except if in WalkAndFight mode where we look for more ennemies around before moving again
    19031903                    if (this.FinishOrder())