Skip to content

Commit

Permalink
Prevent healing dead targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed May 19, 2024
1 parent 03a6749 commit 20f574d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Spells/Spell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,7 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target)

// All calculated do it!
// Do healing and triggers
if (m_healing)
if (m_healing && unitTarget->IsAlive())
{
bool crit = target->isCrit;
uint32 addhealth = ditheru(m_healing);
Expand Down

0 comments on commit 20f574d

Please sign in to comment.