mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 17:09:08 +00:00
Rewrite bot texts
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "Event.h"
|
||||
#include "Playerbots.h"
|
||||
#include "ServerFacade.h"
|
||||
#include "PlayerbotTextMgr.h"
|
||||
|
||||
std::map<std::string, uint32> EmoteActionBase::emotes;
|
||||
std::map<std::string, uint32> EmoteActionBase::textEmotes;
|
||||
@@ -778,7 +779,7 @@ bool EmoteAction::isUseful()
|
||||
return false;
|
||||
|
||||
time_t lastEmote = AI_VALUE2(time_t, "last emote", qualifier);
|
||||
return (time(nullptr) - lastEmote) >= sPlayerbotAIConfig->repeatDelay / 1000;
|
||||
return time(nullptr) >= lastEmote;
|
||||
}
|
||||
|
||||
bool TalkAction::Execute(Event event)
|
||||
|
||||
Reference in New Issue
Block a user