Attacks resulting from a gathering order on an animal should be considered forced or not consistently with the original gather order.

Reviewed By: temple
Fixes #4863

Differential Revision: https://code.wildfiregames.com/D1457
This was SVN commit r21744.
This commit is contained in:
mimo 2018-04-19 14:20:53 +00:00
parent 3033a56f39
commit a37c2240c3

View file

@ -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;
}