mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
*Check category instead of flags for some spells. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -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