mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-29 00:13:47 +00:00
Remove tell master cooldown
This commit is contained in:
@@ -1878,18 +1878,19 @@ bool PlayerbotAI::TellMasterNoFacing(std::string const text, PlayerbotSecurityLe
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
time_t lastSaid = whispers[text];
|
time_t lastSaid = whispers[text];
|
||||||
if (!lastSaid || (time(nullptr) - lastSaid) >= sPlayerbotAIConfig->repeatDelay / 1000)
|
// Yunfan: Remove tell cooldown
|
||||||
{
|
// if (!lastSaid || (time(nullptr) - lastSaid) >= sPlayerbotAIConfig->repeatDelay / 1000)
|
||||||
whispers[text] = time(nullptr);
|
// {
|
||||||
|
whispers[text] = time(nullptr);
|
||||||
|
|
||||||
ChatMsg type = CHAT_MSG_WHISPER;
|
ChatMsg type = CHAT_MSG_WHISPER;
|
||||||
if (currentChat.second - time(nullptr) >= 1)
|
if (currentChat.second - time(nullptr) >= 1)
|
||||||
type = currentChat.first;
|
type = currentChat.first;
|
||||||
|
|
||||||
WorldPacket data;
|
WorldPacket data;
|
||||||
ChatHandler::BuildChatPacket(data, type == CHAT_MSG_ADDON ? CHAT_MSG_PARTY : type, type == CHAT_MSG_ADDON ? LANG_ADDON : LANG_UNIVERSAL, bot, nullptr, text.c_str());
|
ChatHandler::BuildChatPacket(data, type == CHAT_MSG_ADDON ? CHAT_MSG_PARTY : type, type == CHAT_MSG_ADDON ? LANG_ADDON : LANG_UNIVERSAL, bot, nullptr, text.c_str());
|
||||||
master->SendDirectMessage(&data);
|
master->SendDirectMessage(&data);
|
||||||
}
|
// }
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user