mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Added const
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user