refactor(Core/Spell): Pascal Case some SpellEntry types (#4432)

This commit is contained in:
Kitzunu
2021-02-09 01:01:37 +01:00
committed by GitHub
parent 4c558fd670
commit 82eb8b44d1
9 changed files with 198 additions and 198 deletions

View File

@@ -772,22 +772,22 @@ void Aura::Update(uint32 diff, Unit* caster)
if (m_duration < 0)
m_duration = 0;
// handle manaPerSecond/manaPerSecondPerLevel
// handle ManaPerSecond/ManaPerSecondPerLevel
if (m_timeCla)
{
if (m_timeCla > int32(diff))
m_timeCla -= diff;
else if (caster)
{
if (int32 manaPerSecond = m_spellInfo->ManaPerSecond + m_spellInfo->ManaPerSecondPerLevel * caster->getLevel())
if (int32 ManaPerSecond = m_spellInfo->ManaPerSecond + m_spellInfo->ManaPerSecondPerLevel * caster->getLevel())
{
m_timeCla += 1000 - diff;
Powers powertype = Powers(m_spellInfo->PowerType);
if (powertype == POWER_HEALTH)
{
if (int32(caster->GetHealth()) > manaPerSecond)
caster->ModifyHealth(-manaPerSecond);
if (int32(caster->GetHealth()) > ManaPerSecond)
caster->ModifyHealth(-ManaPerSecond);
else
{
Remove();
@@ -796,8 +796,8 @@ void Aura::Update(uint32 diff, Unit* caster)
}
else
{
if (int32(caster->GetPower(powertype)) >= manaPerSecond)
caster->ModifyPower(powertype, -manaPerSecond);
if (int32(caster->GetPower(powertype)) >= ManaPerSecond)
caster->ModifyPower(powertype, -ManaPerSecond);
else
{
Remove();