[0085] Updated critical heal to Cataclysm. Thanks Sovak

Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
Salja 2012-08-13 23:27:54 +02:00 committed by Antz
parent a0cf045d2d
commit 10d308bbaf
2 changed files with 2 additions and 13 deletions

View file

@ -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)
{

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "0084"
#define REVISION_NR "0085"
#endif // __REVISION_NR_H__