*Check category instead of flags for some spells. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
1 parent
fe3ba612d9
commit
3549c0bddd
3 files changed
+8
-9
No files matched your search
+3
-4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user