[Core] Some minor formatting corrections

This commit is contained in:
Antz 2015-10-31 14:21:23 +00:00 committed by Antz
parent a0b79a0c7c
commit 07d91afcf9
3 changed files with 29 additions and 15 deletions

View File

@ -133,7 +133,10 @@ struct boss_garr : public CreatureScript
m_uiAntiMagicPulseTimer = urand(10 * IN_MILLISECONDS, 15 * IN_MILLISECONDS); m_uiAntiMagicPulseTimer = urand(10 * IN_MILLISECONDS, 15 * IN_MILLISECONDS);
} }
} }
else m_uiAntiMagicPulseTimer -= uiDiff; else
{
m_uiAntiMagicPulseTimer -= uiDiff;
}
// MagmaShackles_Timer // MagmaShackles_Timer
if (m_uiMagmaShacklesTimer < uiDiff) if (m_uiMagmaShacklesTimer < uiDiff)
@ -143,7 +146,10 @@ struct boss_garr : public CreatureScript
m_uiMagmaShacklesTimer = urand(8 * IN_MILLISECONDS, 12 * IN_MILLISECONDS); m_uiMagmaShacklesTimer = urand(8 * IN_MILLISECONDS, 12 * IN_MILLISECONDS);
} }
} }
else m_uiMagmaShacklesTimer -= uiDiff; else
{
m_uiMagmaShacklesTimer -= uiDiff;
}
// Explode an add // Explode an add
if (m_uiExplodeAddTimer < uiDiff) if (m_uiExplodeAddTimer < uiDiff)
@ -229,7 +235,10 @@ struct mob_firesworn : public CreatureScript
m_uiSeparationCheckTimer = 5000; m_uiSeparationCheckTimer = 5000;
} }
else m_uiSeparationCheckTimer -= uiDiff; else
{
m_uiSeparationCheckTimer -= uiDiff;
}
// Immolate_Timer // Immolate_Timer
if (m_uiImmolateTimer < uiDiff) if (m_uiImmolateTimer < uiDiff)
@ -242,7 +251,10 @@ struct mob_firesworn : public CreatureScript
} }
} }
} }
else m_uiImmolateTimer -= uiDiff; else
{
m_uiImmolateTimer -= uiDiff;
}
DoMeleeAttackIfReady(); DoMeleeAttackIfReady();
} }

View File

@ -280,7 +280,9 @@ struct is_molten_core : public InstanceScript
uint32 GetData(uint32 uiType) const override uint32 GetData(uint32 uiType) const override
{ {
if (uiType < MAX_ENCOUNTER) if (uiType < MAX_ENCOUNTER)
{
return m_auiEncounter[uiType]; return m_auiEncounter[uiType];
}
else if (sRuneEncounters const *rstr = GetRuneStructForTrapEntry(uiType)) else if (sRuneEncounters const *rstr = GetRuneStructForTrapEntry(uiType))
return m_auiRuneState[rstr->getRuneType()]; return m_auiRuneState[rstr->getRuneType()];