From 92612ede3331f05ee148364beee09ef64100d6c1 Mon Sep 17 00:00:00 2001 From: insuna Date: Sun, 14 Jan 2024 20:58:51 +0100 Subject: [PATCH] Spell: Mindflay calculate base damage for tick (#491) * Spell: Mindflay calculate base damage for tick * Spell: Calculate all basepoints for triggered spells * Spell: Re-Add mistakenly removed nullptr check --- src/game/Spells/SpellAuras.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/game/Spells/SpellAuras.cpp b/src/game/Spells/SpellAuras.cpp index 80e5b069f37..c43a53c0b69 100755 --- a/src/game/Spells/SpellAuras.cpp +++ b/src/game/Spells/SpellAuras.cpp @@ -2344,13 +2344,11 @@ void Aura::TriggerSpellWithValue() // damage triggered from spell might not only be processed by first effect (but always EffectDieSides equal 1) if (triggeredSpellInfo) { - uint8 j = 0; for (uint8 i = 0; i < 3; ++i) { if (triggeredSpellInfo->EffectDieSides[i] == 1) - j = i; + basePoints[i] = calculatedAmount; } - basePoints[j] = calculatedAmount; } Unit* triggerCaster = triggerTarget; WorldObject* triggerTargetObject = nullptr;