mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Added const
This commit is contained in:
parent
dff4934dd1
commit
06e45300e1
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user