From 13e6b7812d738ed7a8125f2e66d0885cb310064b Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 28 Aug 2023 21:22:12 +0800 Subject: [PATCH] miscs --- src/PlayerbotAI.cpp | 2 +- src/PlayerbotAIBase.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PlayerbotAI.cpp b/src/PlayerbotAI.cpp index 90d511e3..e91dbbfa 100644 --- a/src/PlayerbotAI.cpp +++ b/src/PlayerbotAI.cpp @@ -1879,7 +1879,7 @@ bool PlayerbotAI::HasAura(std::string const name, Unit* unit, bool maxStack, boo return false; } -bool PlayerbotAI::HasAura(uint32 spellId, Unit const* unit) +bool PlayerbotAI::HasAura(uint32 spellId, Unit const* unit) { if (!spellId || !unit) return false; diff --git a/src/PlayerbotAIBase.cpp b/src/PlayerbotAIBase.cpp index 034015fb..6e82f7f4 100644 --- a/src/PlayerbotAIBase.cpp +++ b/src/PlayerbotAIBase.cpp @@ -42,8 +42,8 @@ void PlayerbotAIBase::IncreaseNextCheckDelay(uint32 delay) { nextAICheckDelay += delay; - if (nextAICheckDelay > sPlayerbotAIConfig->globalCoolDown) - LOG_DEBUG("playerbots", "increase next check delay: {}", nextAICheckDelay); + // if (nextAICheckDelay > sPlayerbotAIConfig->globalCoolDown) + // LOG_DEBUG("playerbots", "increase next check delay: {}", nextAICheckDelay); } bool PlayerbotAIBase::CanUpdateAI()