diff --git a/src/strategy/values/StatsValues.cpp b/src/strategy/values/StatsValues.cpp index 1208c567..9a121816 100644 --- a/src/strategy/values/StatsValues.cpp +++ b/src/strategy/values/StatsValues.cpp @@ -4,10 +4,13 @@ */ #include "StatsValues.h" - #include "Playerbots.h" #include "ServerFacade.h" +namespace { + constexpr uint32 PRIEST_SPIRIT_OF_REDEMPTION_SPELL_ID = 20711u; +} + Unit* HealthValue::GetTarget() { AiObjectContext* ctx = AiObject::context; @@ -120,7 +123,7 @@ bool HasManaValue::Calculate() if (!target) return false; - if (target->HasAura(20711)) // Spirit of Redemption + if (target->HasAura(PRIEST_SPIRIT_OF_REDEMPTION_SPELL_ID)) return false; return target->GetPower(POWER_MANA);