Skip to content

Commit 9f42f59

Browse files
insunaakillerwife
authored andcommitted
Pet: Fix pet not losing happiness when dismissed
1 parent f569b14 commit 9f42f59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/game/Spells/SpellEffects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,7 @@ void Spell::EffectPowerDrain(SpellEffectIndex eff_idx)
18661866
return;
18671867
if (!unitTarget->IsAlive())
18681868
return;
1869-
if (unitTarget->GetPowerType() != powerType)
1869+
if (unitTarget->GetPowerType() != powerType && powerType != POWER_HAPPINESS)
18701870
return;
18711871
if (damage < 0)
18721872
return;

0 commit comments

Comments
 (0)