From abee68a7ee1494382e6694fecf0f31c6efd4bb6d Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 23 Jun 2021 15:54:43 -0400 Subject: [PATCH] Core/Spells: remove duplicated LowerPlayerDamageReq call on reflected spells Port From (https://github.com/TrinityCore/TrinityCore/commit/800d92bec3b7a771f6fbd8d123dc727c54becd4b) --- Source/Game/Spells/Spell.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/Game/Spells/Spell.cs b/Source/Game/Spells/Spell.cs index 6ea9153e5..9eac48a3d 100644 --- a/Source/Game/Spells/Spell.cs +++ b/Source/Game/Spells/Spell.cs @@ -1849,12 +1849,8 @@ namespace Game.Spells spellHitTarget = unit; else if (missInfo == SpellMissInfo.Reflect) // In case spell reflect from target, do all effect on caster (if hit) { - if (target.reflectResult == SpellMissInfo.None) // If reflected spell hit caster . do all effect on him - { + if (target.reflectResult == SpellMissInfo.None) // If reflected spell hit caster -> do all effect on him spellHitTarget = m_caster; - if (m_caster.IsTypeId(TypeId.Unit)) - m_caster.ToCreature().LowerPlayerDamageReq((uint)target.damage); - } } PrepareScriptHitHandlers();