Core/Spells: remove duplicated LowerPlayerDamageReq call on reflected spells

- It is already called at Unit::DealDamage
This commit is contained in:
ariel- authored and Aokromes committed 2018-02-10 11:36:50 +01:00
1 parent 136ea0023b
commit 23af4f93ba
1 file changed
-4
-4
View File
@@ -2362,11 +2362,7 @@ void Spell::DoAllEffectOnTarget(TargetInfo* target)
else if (missInfo == SPELL_MISS_REFLECT) // In case spell reflect from target, do all effect on caster (if hit)
{
if (target->reflectResult == SPELL_MISS_NONE) // If reflected spell hit caster -> do all effect on him
{
spellHitTarget = m_caster;
if (m_caster->GetTypeId() == TYPEID_UNIT)
m_caster->ToCreature()->LowerPlayerDamageReq(target->damage);
}
}
bool enablePvP = false; // need to check PvP state before spell effects, but act on it afterwards