diff --git a/binaries/data/mods/public/simulation/components/UnitAI.js b/binaries/data/mods/public/simulation/components/UnitAI.js index fda4dfe7ae..9f0d587529 100644 --- a/binaries/data/mods/public/simulation/components/UnitAI.js +++ b/binaries/data/mods/public/simulation/components/UnitAI.js @@ -587,7 +587,7 @@ UnitAI.prototype.UnitFsmSpec = { return; } - this.PushOrderFront("Attack", { "target": this.order.data.target, "force": false, "hunting": true, "allowCapture": false }); + this.PushOrderFront("Attack", { "target": this.order.data.target, "force": !!this.order.data.force, "hunting": true, "allowCapture": false }); return; } @@ -899,7 +899,7 @@ UnitAI.prototype.UnitFsmSpec = { return; } - this.PushOrderFront("Attack", { "target": msg.data.target, "hunting": true, "allowCapture": false }); + this.PushOrderFront("Attack", { "target": msg.data.target, "force": !!msg.data.force, "hunting": true, "allowCapture": false }); return; }