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