mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Update NonCombatActions.cpp
Expensive checks last.
This commit is contained in:
parent
62e2ca247a
commit
ec4ab34f94
@ -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());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user