Mobs can no longer crit with spells. Closes issue #1704. Based on patch by PSZ.

--HG--
branch : trunk
This commit is contained in:
Xanadu
2010-06-23 05:04:24 +02:00
parent 05976b7708
commit 30a59b7b69
+4
View File
@@ -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;