diff options
| author | tobmaps <spambot42@yandex.ru> | 2011-07-15 19:57:22 +0700 |
|---|---|---|
| committer | tobmaps <spambot42@yandex.ru> | 2011-07-15 19:57:22 +0700 |
| commit | e1c7d95699c823ca380a04965010809ac0a75fd3 (patch) | |
| tree | a3259ded41137eff40047fd40885d1c317479d1a /src | |
| parent | 19036d260afe6c65f98bb5cf9647e307f33c2387 (diff) | |
Core/Spells: Fix Divine Hymn crits
Diffstat (limited to 'src')
| -rwxr-xr-x | src/server/game/Entities/Unit/Unit.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 0f43e94efbb..55ccaf40468 100755 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -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) |
