mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Update NonCombatActions.cpp
Expensive checks last.
This commit is contained in:
@@ -59,8 +59,8 @@ bool DrinkAction::isUseful()
|
|||||||
bool DrinkAction::isPossible()
|
bool DrinkAction::isPossible()
|
||||||
{
|
{
|
||||||
return !bot->IsInCombat() &&
|
return !bot->IsInCombat() &&
|
||||||
AI_VALUE2(bool, "has mana", "self target") &&
|
|
||||||
!bot->IsMounted() &&
|
!bot->IsMounted() &&
|
||||||
|
AI_VALUE2(bool, "has mana", "self target") &&
|
||||||
!botAI->HasAnyAuraOf(GetTarget(), "dire bear form", "bear form", "cat form", "travel form",
|
!botAI->HasAnyAuraOf(GetTarget(), "dire bear form", "bear form", "cat form", "travel form",
|
||||||
"aquatic form","flight form", "swift flight form", nullptr) &&
|
"aquatic form","flight form", "swift flight form", nullptr) &&
|
||||||
(botAI->HasCheat(BotCheatMask::food) || UseItemAction::isPossible());
|
(botAI->HasCheat(BotCheatMask::food) || UseItemAction::isPossible());
|
||||||
|
|||||||
Reference in New Issue
Block a user