mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 18:07:16 +00:00
[Bots] Fix rule Bots:FinishBuffing (#4788)
This commit is contained in:
1 parent
deb298dda7
commit
d554eb3423
4 files changed
+30
-4
No files matched your search
@@ -562,7 +562,9 @@ bool Bot::AIDoSpellCast(int32 i, Mob* tar, int32 mana_cost, uint32* oDontDoAgain
|
||||
// Allow bots to cast buff spells even if they are out of mana
|
||||
if (
|
||||
RuleB(Bots, FinishBuffing) &&
|
||||
manaCost > hasMana && AIBot_spells[i].type == BotSpellTypes::Buff
|
||||
manaCost > hasMana &&
|
||||
!IsEngaged() &&
|
||||
IsBotBuffSpellType(AIBot_spells[i].type)
|
||||
) {
|
||||
SetMana(manaCost);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user