mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-13 23:43:44 +00:00
refactor(Core/Spell): Pascal Case some SpellEntry types (#4432)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user