From c7c092f54bc6aa988991c601d532322c5cb8df32 Mon Sep 17 00:00:00 2001 From: krz Date: Sun, 7 Jun 2009 19:10:01 +0200 Subject: Calculate spell critical hit chance at spell cast instead spell hit. Patch by thenecromancer. --HG-- branch : trunk --- src/game/Unit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/Unit.h') diff --git a/src/game/Unit.h b/src/game/Unit.h index 9929c173206..a0b33b18b73 100644 --- a/src/game/Unit.h +++ b/src/game/Unit.h @@ -957,7 +957,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject void CalculateMeleeDamage(Unit *pVictim, uint32 damage, CalcDamageInfo *damageInfo, WeaponAttackType attackType = BASE_ATTACK); void DealMeleeDamage(CalcDamageInfo *damageInfo, bool durabilityLoss); - void CalculateSpellDamageTaken(SpellNonMeleeDamage *damageInfo, int32 damage, SpellEntry const *spellInfo, WeaponAttackType attackType = BASE_ATTACK); + void CalculateSpellDamageTaken(SpellNonMeleeDamage *damageInfo, int32 damage, SpellEntry const *spellInfo, WeaponAttackType attackType = BASE_ATTACK, bool crit = false); void DealSpellDamage(SpellNonMeleeDamage *damageInfo, bool durabilityLoss); float MeleeSpellMissChance(const Unit *pVictim, WeaponAttackType attType, int32 skillDiff, uint32 spellId) const; -- cgit v1.2.3