*Mangos [7025] Restore work/add new spell post effects. By DiSlord.
--HG-- branch : trunk
This commit is contained in:
1 parent
aecc244de3
commit
190b026950
4 files changed
+73
-26
No files matched your search
+2
-2
@@ -2528,7 +2528,7 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
|
||||
if (spell->Attributes & SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY)
|
||||
return SPELL_MISS_NONE;
|
||||
|
||||
// Check for immune (use charges)
|
||||
// Check for immune
|
||||
if (pVictim->IsImmunedToSpell(spell))
|
||||
return SPELL_MISS_IMMUNE;
|
||||
|
||||
@@ -2538,7 +2538,7 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
|
||||
&&(!IsHostileTo(pVictim))) //prevent from affecting enemy by "positive" spell
|
||||
return SPELL_MISS_NONE;
|
||||
|
||||
// Check for immune (use charges)
|
||||
// Check for immune
|
||||
if (pVictim->IsImmunedToDamage(GetSpellSchoolMask(spell)))
|
||||
return SPELL_MISS_IMMUNE;
|
||||
|
||||
|
||||
Reference in new issue
Block a user