Ticket #3533: 3533.diff
File 3533.diff, 740 bytes (added by , 9 years ago) |
---|
-
binaries/data/mods/public/simulation/components/Attack.js
328 328 return ret; 329 329 }; 330 330 331 /**332 * Return the type of the best attack.333 * TODO: this should probably depend on range, target, etc,334 * so we can automatically switch between ranged and melee335 */336 Attack.prototype.GetBestAttack = function()337 {338 return this.GetAttackTypes().pop();339 };340 341 331 Attack.prototype.GetBestAttackAgainst = function(target, allowCapture) 342 332 { 343 333 var cmpFormation = Engine.QueryInterface(target, IID_Formation);