From 9a181213185cbfc9fa50a4fe697f54006ea95fd4 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Mon, 27 Jul 2020 01:43:21 +0200 Subject: [PATCH] Core/Spells: SPELL_ATTR3_NO_DONE_BONUS will now also prevent bonus values for heal spell effects --- src/server/game/Entities/Unit/Unit.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index a5eb978ede0..30ebeaa4068 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -7400,6 +7400,10 @@ uint32 Unit::SpellHealingBonusDone(Unit* victim, SpellInfo const* spellProto, ui if (Unit* owner = GetOwner()) return owner->SpellHealingBonusDone(victim, spellProto, healamount, damagetype, effIndex, stack); + // Some spells don't benefit from done mods + if (spellProto->HasAttribute(SPELL_ATTR3_NO_DONE_BONUS)) + return healamount; + // No bonus healing for potion spells if (spellProto->SpellFamilyName == SPELLFAMILY_POTION) return healamount;