BuddyWing / BuddyWing.DefaultCombat

The default combat routine included with BuddyWing, the bot for SWTOR
Apache License 2.0
12 stars 12 forks source link

Mercenary routines missing some defensives? #18

Open pjmagee opened 8 years ago

pjmagee commented 8 years ago

I.E Jet Out and Jet Boost are not used as part of cooldowns?

Could add something like so:


 // Push back melee damage
Spell.Buff("Jet Boost", ret => Me.EnemiesAttackers.Count(x => x.Distance <= 5 && x.HasMeleeWeapon) > 2),
// Escape for distance
Spell.Buff("Jet Out", ret => Me.Level >= 61 && Me.HealthPercent <= 20 && Me.EnemiesAttackers.Count(attacker => attacker.Distance <= 5 && attacker.HasMeleeWeapon) > 2),
Logandros commented 6 years ago

Great idea but could/would be problematic if you need to stay in a certain spot, could potentially throw you off a platform, bridge, or ledge etc. A few fights come to mind that this would be really bad. DefaultCombat by default is designed with the presumption that the user is controlling the movement, this is why we allow for enable / disable on charge. We could do it by function (disabled by default) but the bot is already bloated with functions.