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:
1 parent
f7fd5da963
commit
292cbbf068
1 file changed
+1
-12
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user