*Check category instead of flags for some spells. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-07 14:40:37 -05:00
parent fe3ba612d9
commit 3549c0bddd
3 changed files with 8 additions and 9 deletions

View File

@@ -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;
}