mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-15 09:50:27 +00:00
Warning fix + ilvl function fix (#1210)
* 1 variable order warning fixed 70 unused variable warning fixed * Fixed GetEquipGearScore function --------- Co-authored-by: Julien MAS <julien.mas81@gmail.com>
This commit is contained in:
@@ -734,7 +734,7 @@ bool EmoteAction::Execute(Event event)
|
||||
std::string param = event.getParam();
|
||||
if ((!isReact && param.empty()) || emote)
|
||||
{
|
||||
time_t lastEmote = AI_VALUE2(time_t, "last emote", qualifier);
|
||||
// time_t lastEmote = AI_VALUE2(time_t, "last emote", qualifier); //not used, line marked for removal.
|
||||
botAI->GetAiObjectContext()
|
||||
->GetValue<time_t>("last emote", qualifier)
|
||||
->Set(time(nullptr) + urand(1000, sPlayerbotAIConfig->repeatDelay) / 1000);
|
||||
|
||||
Reference in New Issue
Block a user