Skip to content

Commit

Permalink
Fix use potions actions taking 5 seconds duration when it should be l…
Browse files Browse the repository at this point in the history
…ess than 1 second
  • Loading branch information
davidonete committed Nov 28, 2022
1 parent 4b2f382 commit 7d43ae7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions playerbot/strategy/actions/UseItemAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ namespace ai
{
// Update the last potion used timestamp
SET_AI_VALUE(time_t, "last potion used time", time(0));

// Set the duration of the action
SetDuration(sPlayerbotAIConfig.globalCoolDown);
}

return result;
Expand Down

0 comments on commit 7d43ae7

Please sign in to comment.