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

This commit is contained in:
ariel- authored and Aokromes committed 2016-09-14 14:33:12 +02:00
1 parent aeae738b37
commit dcb823bc4a
1 file changed
+11
+11
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;