Update NonCombatActions.cpp

Expensive checks last.
This commit is contained in:
bash
2025-09-27 23:31:16 +02:00
committed by GitHub
parent 62e2ca247a
commit ec4ab34f94

View File

@@ -59,8 +59,8 @@ bool DrinkAction::isUseful()
bool DrinkAction::isPossible()
{
return !bot->IsInCombat() &&
AI_VALUE2(bool, "has mana", "self target") &&
!bot->IsMounted() &&
AI_VALUE2(bool, "has mana", "self target") &&
!botAI->HasAnyAuraOf(GetTarget(), "dire bear form", "bear form", "cat form", "travel form",
"aquatic form","flight form", "swift flight form", nullptr) &&
(botAI->HasCheat(BotCheatMask::food) || UseItemAction::isPossible());