Skip to content

Commit 91e9194

Browse files
committed
Core/Units: Removed custom power type enum value
1 parent 259f4b8 commit 91e9194

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/server/game/Spells/Auras/SpellAuraEffects.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5452,11 +5452,7 @@ void AuraEffect::HandlePeriodicManaLeechAuraTick(Unit* target, Unit* caster) con
54525452

54535453
void AuraEffect::HandleObsModPowerAuraTick(Unit* target, Unit* caster) const
54545454
{
5455-
Powers powerType;
5456-
if (GetMiscValue() == POWER_ALL)
5457-
powerType = target->GetPowerType();
5458-
else
5459-
powerType = Powers(GetMiscValue());
5455+
Powers powerType = Powers(GetMiscValue());
54605456

54615457
if (!target->IsAlive() || !target->GetMaxPower(powerType))
54625458
return;

src/server/game/Spells/SpellMgr.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3646,6 +3646,12 @@ void SpellMgr::LoadSpellInfoCorrections()
36463646
spellInfo->AttributesEx6 |= SPELL_ATTR6_LIMIT_PCT_DAMAGE_MODS;
36473647
});
36483648

3649+
// Dispersion
3650+
ApplySpellFix({ 60069 }, [](SpellInfo* spellInfo)
3651+
{
3652+
spellInfo->_GetEffect(EFFECT_0).MiscValue = POWER_MANA;
3653+
});
3654+
36493655
// Improved Devouring Plague
36503656
ApplySpellFix({ 63675 }, [](SpellInfo* spellInfo)
36513657
{

src/server/shared/SharedDefines.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,7 @@ enum Powers : int8
308308
POWER_HAPPINESS = 4, // TITLE Happiness
309309
POWER_RUNE = 5, // TITLE Runes
310310
POWER_RUNIC_POWER = 6, // TITLE Runic Power
311-
MAX_POWERS = 7, // SKIP
312-
POWER_ALL = 127 // SKIP
311+
MAX_POWERS = 7 // SKIP
313312
};
314313

315314
#define MAX_RUNES 6

0 commit comments

Comments
 (0)