Skip to content

Commit

Permalink
Fixed typo on focus heal targets (#107)
Browse files Browse the repository at this point in the history
Focus heal: Prevents bots with focus heal being stuck after the focus heal targets list is cleared
  • Loading branch information
ileboii authored Dec 10, 2024
1 parent 07690a1 commit 122cb4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playerbot/strategy/actions/ValueActions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ bool SetFocusHealTargetsAction::Execute(Event& event)
{
focusHealTargets.clear();
SET_AI_VALUE(std::list<ObjectGuid>, "focus heal targets", focusHealTargets);
ai->ChangeStrategy("-focus heal target", BotState::BOT_STATE_COMBAT);
ai->ChangeStrategy("-focus heal targets", BotState::BOT_STATE_COMBAT);
ai->TellPlayerNoFacing(requester, "Removed focus heal targets");
return true;
}
Expand Down Expand Up @@ -167,7 +167,7 @@ bool SetFocusHealTargetsAction::Execute(Event& event)

if (focusHealTargets.empty())
{
ai->ChangeStrategy("-focus heal target", BotState::BOT_STATE_COMBAT);
ai->ChangeStrategy("-focus heal targets", BotState::BOT_STATE_COMBAT);
}
else
{
Expand Down

0 comments on commit 122cb4b

Please sign in to comment.