Minor correction, scope was to big.

This commit is contained in:
bash
2025-10-02 01:28:30 +02:00
committed by GitHub
parent 06e45300e1
commit 31b19aabc7

View File

@@ -7,10 +7,6 @@
#include "Playerbots.h" #include "Playerbots.h"
#include "ServerFacade.h" #include "ServerFacade.h"
namespace {
constexpr uint32 PRIEST_SPIRIT_OF_REDEMPTION_SPELL_ID = 20711u;
}
Unit* HealthValue::GetTarget() Unit* HealthValue::GetTarget()
{ {
AiObjectContext* ctx = AiObject::context; AiObjectContext* ctx = AiObject::context;
@@ -122,7 +118,8 @@ bool HasManaValue::Calculate()
Unit* target = GetTarget(); Unit* target = GetTarget();
if (!target) if (!target)
return false; return false;
constexpr uint32 PRIEST_SPIRIT_OF_REDEMPTION_SPELL_ID = 20711u;
if (target->HasAura(PRIEST_SPIRIT_OF_REDEMPTION_SPELL_ID)) if (target->HasAura(PRIEST_SPIRIT_OF_REDEMPTION_SPELL_ID))
return false; return false;