diff --git a/binaries/data/mods/public/simulation/components/Attack.js b/binaries/data/mods/public/simulation/components/Attack.js index 392027becc..d0dcf54026 100644 --- a/binaries/data/mods/public/simulation/components/Attack.js +++ b/binaries/data/mods/public/simulation/components/Attack.js @@ -452,7 +452,7 @@ Attack.prototype.StartAttacking = function(target, type, callerIID) if (this.target) this.StopAttacking(); - if (!this.CanAttack(target)) + if (!this.CanAttack(target, [type])) return false; let timings = this.GetTimers(type); @@ -522,7 +522,7 @@ Attack.prototype.StopAttacking = function(reason) */ Attack.prototype.Attack = function(type, lateness) { - if (!this.CanAttack(this.target)) + if (!this.CanAttack(this.target, [type])) { this.StopAttacking("TargetInvalidated"); return;