Skip to content

Commit 0916c45

Browse files
authored
Bot whisper level check (#284)
1 parent ba6b4e8 commit 0916c45

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/modules/Bots/playerbot/strategy/actions/SuggestWhatToDoAction.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,5 +286,8 @@ void SuggestWhatToDoAction::spam(string msg)
286286
(bot->GetMapId() != player->GetMapId() || bot->GetDistance(player) > sPlayerbotAIConfig.whisperDistance))
287287
return;
288288

289+
if ((int)bot->getLevel() - (int)player->getLevel() > 5)
290+
return;
291+
289292
bot->Whisper(msg, LANG_UNIVERSAL, player->GetObjectGuid());
290293
}

0 commit comments

Comments
 (0)