Mobs can no longer crit with spells. Closes issue #1704. Based on patch by PSZ.
--HG-- branch : trunk
This commit is contained in:
@@ -10367,6 +10367,10 @@ int32 Unit::SpellBaseDamageBonusForVictim(SpellSchoolMask schoolMask, Unit *pVic
|
||||
|
||||
bool Unit::isSpellCrit(Unit *pVictim, SpellEntry const *spellProto, SpellSchoolMask schoolMask, WeaponAttackType attackType) const
|
||||
{
|
||||
// Mobs can't crit with spells.
|
||||
if (IS_CREATURE_GUID(GetGUID()))
|
||||
return false;
|
||||
|
||||
// not critting spell
|
||||
if ((spellProto->AttributesEx2 & SPELL_ATTR_EX2_CANT_CRIT))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user