Core/Spells: remove duplicated LowerPlayerDamageReq call on reflected spells

Port From (https://github.com/TrinityCore/TrinityCore/commit/800d92bec3b7a771f6fbd8d123dc727c54becd4b)
This commit is contained in:
hondacrx
2021-06-23 15:54:43 -04:00
parent 1aa375a8ee
commit abee68a7ee
+1 -5
View File
@@ -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();