Core/Units: Removed custom power type enum value

(cherry picked from commit 91e91944f238b5f3984b55b0b5ecce8c30495630)
This commit is contained in:
Shauren
2026-07-26 00:55:10 +02:00
parent 4e96f5a573
commit acd6b5d66c
2 changed files with 2 additions and 7 deletions
@@ -318,8 +318,7 @@ enum Powers : int8
POWER_ALTERNATE_QUEST = 23, // TITLE Alternate (Quest)
POWER_ALTERNATE_ENCOUNTER = 24, // TITLE Alternate (Encounter)
POWER_ALTERNATE_MOUNT = 25, // TITLE Alternate (Mount)
MAX_POWERS = 26, // SKIP
POWER_ALL = 127 // SKIP
MAX_POWERS = 26 // SKIP
};
#define MAX_POWERS_PER_CLASS 10
@@ -5996,11 +5996,7 @@ void AuraEffect::HandlePeriodicManaLeechAuraTick(Unit* target, Unit* caster) con
void AuraEffect::HandleObsModPowerAuraTick(Unit* target, Unit* caster) const
{
Powers powerType;
if (GetMiscValue() == POWER_ALL)
powerType = target->GetPowerType();
else
powerType = Powers(GetMiscValue());
Powers powerType = Powers(GetMiscValue());
if (!target->IsAlive() || !target->GetMaxPower(powerType))
return;