mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 00:58:33 +00:00
drink & food noncombat only
This commit is contained in:
@@ -60,7 +60,7 @@ bool DrinkAction::isUseful()
|
||||
|
||||
bool DrinkAction::isPossible()
|
||||
{
|
||||
return sPlayerbotAIConfig->freeFood || UseItemAction::isPossible();
|
||||
return !bot->IsInCombat() && (sPlayerbotAIConfig->freeFood || UseItemAction::isPossible());
|
||||
}
|
||||
|
||||
bool EatAction::Execute(Event event)
|
||||
@@ -112,5 +112,5 @@ bool EatAction::isUseful()
|
||||
|
||||
bool EatAction::isPossible()
|
||||
{
|
||||
return sPlayerbotAIConfig->freeFood || UseItemAction::isPossible();
|
||||
return !bot->IsInCombat() && (sPlayerbotAIConfig->freeFood || UseItemAction::isPossible());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user