diff options
author | megamage <none@none> | 2009-08-07 14:40:37 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-07 14:40:37 -0500 |
commit | 3549c0bddd7b170bf3717f5d2aae9de1dcab9060 (patch) | |
tree | 7865619dafe9c13da23d4a5ade46c604eef8b010 /src/game/Unit.cpp | |
parent | fe3ba612d94b715bbbbac944418be1188ad66339 (diff) |
*Check category instead of flags for some spells. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index bc43eefbb36..5c666f3778f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -9806,11 +9806,10 @@ bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolM crit_chance+=aura->GetAmount(); break; } - // Exorcism - "If the target is Undead or Demon, it will always critically hit" - else if(spellProto->SpellFamilyFlags[1]&0x2) + // Exorcism + else if (spellProto->Category == 19) { - if(pVictim->GetCreatureType() == CREATURE_TYPE_DEMON - || pVictim->GetCreatureType() == CREATURE_TYPE_UNDEAD) + if (pVictim->GetCreatureTypeMask() & CREATURE_TYPEMASK_DEMON_OR_UNDEAD) return true; break; } |