Core/Spells: Updated critical heal to Cataclysm

Signed-off-by: Sovak <Sovak007@gmail.com>
Signed-off-by: Nay <dnpd.dd@gmail.com>
This commit is contained in:
Sovak authored and Nay committed 2012-08-13 22:11:29 +01:00
1 parent f7fd5da963
commit 292cbbf068
1 file changed
+1 -12
+1 -12
View File
@@ -10924,18 +10924,7 @@ uint32 Unit::SpellCriticalDamageBonus(SpellInfo const* spellProto, uint32 damage
uint32 Unit::SpellCriticalHealingBonus(SpellInfo const* spellProto, uint32 damage, Unit* victim)
{
// Calculate critical bonus
int32 crit_bonus;
switch (spellProto->DmgClass)
{
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 (victim)
{