Core/Spell: Updated SpellInfo::GetMaxTicks with all effects capable of periodics

This commit is contained in:
ariel-
2016-09-12 20:19:06 -03:00
committed by Aokromes
parent aeae738b37
commit dcb823bc4a

View File

@@ -2354,8 +2354,19 @@ uint32 SpellInfo::GetMaxTicks() const
switch (Effects[x].ApplyAuraName)
{
case SPELL_AURA_PERIODIC_DAMAGE:
case SPELL_AURA_PERIODIC_DAMAGE_PERCENT:
case SPELL_AURA_PERIODIC_HEAL:
case SPELL_AURA_OBS_MOD_HEALTH:
case SPELL_AURA_OBS_MOD_POWER:
case SPELL_AURA_48:
case SPELL_AURA_POWER_BURN:
case SPELL_AURA_PERIODIC_LEECH:
case SPELL_AURA_PERIODIC_MANA_LEECH:
case SPELL_AURA_PERIODIC_ENERGIZE:
case SPELL_AURA_PERIODIC_DUMMY:
case SPELL_AURA_PERIODIC_TRIGGER_SPELL:
case SPELL_AURA_PERIODIC_TRIGGER_SPELL_WITH_VALUE:
case SPELL_AURA_PERIODIC_HEALTH_FUNNEL:
if (Effects[x].Amplitude != 0)
return DotDuration / Effects[x].Amplitude;
break;