mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
[Bots] Fix FinishBuffing rule (#4961)
This commit is contained in:
parent
659a960401
commit
f7775c7a75
11
zone/bot.cpp
11
zone/bot.cpp
@ -9610,14 +9610,9 @@ bool Bot::CastChecks(uint16 spell_id, Mob* tar, uint16 spell_type, bool precheck
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
bool is_mana_exempt = RuleB(Bots, FinishBuffing) && !IsEngaged() && IsBotBuffSpellType(spell_type);
|
||||||
!BotHasEnoughMana(spell_id) &&
|
|
||||||
(
|
if (!BotHasEnoughMana(spell_id) && !is_mana_exempt) {
|
||||||
!RuleB(Bots, FinishBuffing) ||
|
|
||||||
IsEngaged() ||
|
|
||||||
IsBotBuffSpellType(spell_type)
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
LogBotSpellChecksDetail("{} says, 'Cancelling cast of {} due to !BotHasEnoughMana.'", GetCleanName(), GetSpellName(spell_id));
|
LogBotSpellChecksDetail("{} says, 'Cancelling cast of {} due to !BotHasEnoughMana.'", GetCleanName(), GetSpellName(spell_id));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user