Added const

This commit is contained in:
bash
2025-10-01 23:45:28 +02:00
committed by GitHub
parent dff4934dd1
commit 06e45300e1

View File

@@ -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);