Core/Units: Removed custom power type enum value
(cherry picked from commit 91e91944f238b5f3984b55b0b5ecce8c30495630)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user