Index: binaries/data/mods/public/simulation/components/UnitAI.js =================================================================== --- binaries/data/mods/public/simulation/components/UnitAI.js +++ binaries/data/mods/public/simulation/components/UnitAI.js @@ -2017,6 +2017,16 @@ { let cmpAttack = Engine.QueryInterface(this.entity, IID_Attack); cmpAttack.PerformAttack(this.order.data.attackType, target); + + // Reset the timer if the repeat time has changed + let attackTimers = cmpAttack.GetTimers(this.order.data.attackType); + if (attackTimers.repeat != this.attackTimers.repeat) + { + this.attackTimers = attackTimers; + this.StopTimer(); + this.StartTimer(this.attackTimers.repeat, this.attackTimers.repeat); + this.SetAnimationSync(this.attackTimers.repeat, this.attackTimers.repeat); + } } // Check we can still reach the target for the next attack