mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-20 06:59:46 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user