Core/Spells: Fix Divine Hymn crits

This commit is contained in:
tobmaps
2011-07-15 19:57:22 +07:00
parent 19036d260a
commit e1c7d95699
+11 -3
View File
@@ -10958,9 +10958,17 @@ bool Unit::isSpellCrit(Unit* victim, SpellEntry const* spellProto, SpellSchoolMa
float crit_chance = 0.0f;
switch(spellProto->DmgClass)
{
case SPELL_DAMAGE_CLASS_NONE: // Exception for Earth Shield and Lifebloom Final Bloom
if (spellProto->Id != 379 && spellProto->Id != 33778) // We need more spells to find a general way (if there is any)
return false;
case SPELL_DAMAGE_CLASS_NONE:
// We need more spells to find a general way (if there is any)
switch (spellProto->Id)
{
case 379: // Earth Shield
case 33778: // Lifebloom Final Bloom
case 64844: // Divine Hymn
break;
default:
return false;
}
case SPELL_DAMAGE_CLASS_MAGIC:
{
if (schoolMask & SPELL_SCHOOL_MASK_NORMAL)