mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[7025] Restore work/add new spell post effects
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
f50083928a
commit
d65458b0de
4 changed files with 73 additions and 24 deletions
|
|
@ -2390,7 +2390,7 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
|
|||
if (pVictim->GetTypeId()==TYPEID_UNIT && ((Creature*)pVictim)->IsInEvadeMode())
|
||||
return SPELL_MISS_EVADE;
|
||||
|
||||
// Check for immune (use charges)
|
||||
// Check for immune
|
||||
if (pVictim->IsImmunedToSpell(spell))
|
||||
return SPELL_MISS_IMMUNE;
|
||||
|
||||
|
|
@ -2399,7 +2399,7 @@ SpellMissInfo Unit::SpellHitResult(Unit *pVictim, SpellEntry const *spell, bool
|
|||
if (IsPositiveSpell(spell->Id))
|
||||
return SPELL_MISS_NONE;
|
||||
|
||||
// Check for immune (use charges)
|
||||
// Check for immune
|
||||
if (pVictim->IsImmunedToDamage(GetSpellSchoolMask(spell)))
|
||||
return SPELL_MISS_IMMUNE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue