Skip to content

Commit

Permalink
Spell: Mindflay calculate base damage for tick (#491)
Browse files Browse the repository at this point in the history
* Spell: Mindflay calculate base damage for tick

* Spell: Calculate all basepoints for triggered spells

* Spell: Re-Add mistakenly removed nullptr check
  • Loading branch information
insunaa authored Jan 14, 2024
1 parent d32e0a5 commit 92612ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/game/Spells/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 92612ed

Please sign in to comment.