Skip to content

Commit

Permalink
-Rune douse fix: Fix bots being unable to douse runes in MC.
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Dec 25, 2023
1 parent 0d5d9b5 commit 83bc24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playerbot/strategy/actions/UseItemAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ bool UseItemIdAction::CastItemSpell(uint32 itemId, Unit* target, GameObject* goT

bool UseItemIdAction::isUseful()
{
if (getQualifier().find_first_not_of("0123456789") != std::string::npos)
if (!getQualifier().empty() && (getMultiQualifierStr(getQualifier(), 0, ",").find_first_not_of("0123456789") != std::string::npos))
{
sLog.outError("UseItemIdAction::isUseful with qualifier %s, should be number.", getQualifier().c_str());
return false;
Expand Down

0 comments on commit 83bc24a

Please sign in to comment.