aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 91821febb39..f997ce6b506 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -2803,6 +2803,10 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
if (pVictim->GetTypeId()==TYPEID_UNIT && ((Creature*)pVictim)->IsInEvadeMode())
return SPELL_MISS_EVADE;
+ // If Spel has this flag cannot be resisted/immuned/etc
+ if (spell->Attributes & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY)
+ return SPELL_MISS_NONE;
+
// Check for immune (use charges)
if (pVictim->IsImmunedToSpell(spell,true))
return SPELL_MISS_IMMUNE;