Core/Spell: Fixed irregular handling of SPELLMOD_DOT

- Applied twice for some dots
- Missing for Health Leech Periodic
- Missing in a few scripts

Closes #17463
This commit is contained in:
ariel-
2016-11-16 04:06:32 -03:00
parent b6a8045adc
commit 56beec8aaf
6 changed files with 75 additions and 44 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ class spell_hun_chimera_shot : public SpellScriptLoader
// first, calculate damage of basic tick (C&P from AuraEffect::HandlePeriodicDamageAurasTick)
basePoint = (aurEff->GetAmount() + aurEff->GetBonusAmount()) * aurEff->GetDonePct();
if (Player* modOwner = caster->GetSpellModOwner())
modOwner->ApplySpellMod<SPELLMOD_DOT>(aurEff->GetSpellInfo()->Id, basePoint);
modOwner->ApplySpellMod<SPELLMOD_DOT>(aurEff->GetId(), basePoint);
basePoint = unitTarget->SpellDamageBonusTaken(caster, aurEff->GetSpellInfo(), basePoint, DOT, aura->GetStackAmount());
// then, multiply to get damage potential