Ticket #3284: attack_patch.diff
File attack_patch.diff, 610 bytes (added by , 9 years ago) |
---|
-
binaries/data/mods/public/simulation/components/Attack.js
315 315 */ 316 316 Attack.prototype.GetBestAttack = function() 317 317 { 318 // Static order workaround 319 var best = ["Ranged", "Melee", "Capture"]; 320 var types = this.GetAttackTypes(); 321 for (var key in best) { 322 if (types.indexOf(best[key]) != -1) return best[key]; 323 } 318 324 return this.GetAttackTypes().pop(); 319 325 }; 320 326