From 10d308bbaf74c570363179c615bccfb74de97179 Mon Sep 17 00:00:00 2001 From: Salja Date: Mon, 13 Aug 2012 23:27:54 +0200 Subject: [PATCH] [0085] Updated critical heal to Cataclysm. Thanks Sovak Signed-off-by: Salja --- src/game/Unit.cpp | 13 +------------ src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 83983cd0b..031fc2677 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7267,18 +7267,7 @@ uint32 Unit::SpellCriticalDamageBonus(SpellEntry const* spellProto, uint32 damag uint32 Unit::SpellCriticalHealingBonus(SpellEntry const* spellProto, uint32 damage, Unit* pVictim) { // Calculate critical bonus - int32 crit_bonus; - switch(spellProto->GetDmgClass()) - { - case SPELL_DAMAGE_CLASS_MELEE: // for melee based spells is 100% - case SPELL_DAMAGE_CLASS_RANGED: - // TODO: write here full calculation for melee/ranged spells - crit_bonus = damage; - break; - default: - crit_bonus = damage / 2; // for spells is 50% - break; - } + int32 crit_bonus = damage; if (pVictim) { diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index c059f6182..3e17e85e2 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "0084" + #define REVISION_NR "0085" #endif // __REVISION_NR_H__