diff --git a/zone/client_bot.cpp b/zone/client_bot.cpp index fb9bb3c63..7bfc5fd14 100644 --- a/zone/client_bot.cpp +++ b/zone/client_bot.cpp @@ -237,6 +237,7 @@ void Client::LoadDefaultBotSettings() { t.delay = GetDefaultSpellDelay(i); t.minThreshold = GetDefaultSpellMinThreshold(i); t.maxThreshold = GetDefaultSpellMaxThreshold(i); + t.recastTimer.Start(); m_bot_spell_settings.push_back(t); diff --git a/zone/mob.h b/zone/mob.h index 84ff76c8a..b0444d4a8 100644 --- a/zone/mob.h +++ b/zone/mob.h @@ -433,7 +433,7 @@ public: bool PlotBotPositionAroundTarget(Mob* target, float& x_dest, float& y_dest, float& z_dest, float min_distance, float max_distance, bool behind_only = false, bool front_only = false, bool bypass_los = false); virtual bool IsImmuneToBotSpell(uint16 spell_id, Mob* caster); std::vector GatherSpellTargets(bool entireRaid = false, Mob* target = nullptr, bool no_clients = false, bool no_bots = false, bool no_pets = false); - inline bool SpellTypeRecastCheck(uint16 spellType) { return (IsClient () ? true : m_bot_spell_settings [spellType].recastTimer.GetRemainingTime () > 0 ? false : true); } + inline bool SpellTypeRecastCheck(uint16 spellType) { return !m_bot_spell_settings[spellType].recastTimer.GetRemainingTime(); } uint16 GetSpellTypeIDByShortName(std::string spellType_string); bool IsValidBotSpellCategory(uint8 setting_type); std::string GetBotSpellCategoryName(uint8 setting_type);