Core/Spells: Define and implement SPELL_ATTR7_NO_PUSHBACK_ON_DAMAGE

This commit is contained in:
Trisjdc committed 2014-05-05 16:33:30 +01:00
1 parent b6bf83589c
commit 719a00e926
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -774,7 +774,8 @@ uint32 Unit::DealDamage(Unit* victim, uint32 damage, CleanDamage const* cleanDam
if (damagetype != NODAMAGE && damage)
{
if (victim != this && victim->GetTypeId() == TYPEID_PLAYER) // does not support creature push_back
if (victim != this && victim->GetTypeId() == TYPEID_PLAYER && // does not support creature push_back
(!spellProto || !(spellProto->AttributesEx7 & SPELL_ATTR7_NO_PUSHBACK_ON_DAMAGE)))
{
if (damagetype != DOT)
if (Spell* spell = victim->m_currentSpells[CURRENT_GENERIC_SPELL])