From 3ea6bc08db3ab2bc0aade37205fd25763a82b7f5 Mon Sep 17 00:00:00 2001 From: thenecromancer Date: Wed, 21 Apr 2010 18:56:13 +0200 Subject: Fix Critical Block --HG-- branch : trunk --- src/game/Unit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 901d67b0276..fd39d86849d 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -1095,7 +1095,7 @@ void Unit::CalculateSpellDamageTaken(SpellNonMeleeDamage *damageInfo, int32 dama { damageInfo->blocked = uint32(pVictim->GetShieldBlockValue()); //double blocked amount if block is critical - if (isBlockCritical()) + if (pVictim->isBlockCritical()) damageInfo->blocked+=damageInfo->blocked; if (damage < damageInfo->blocked) damageInfo->blocked = damage; @@ -1321,7 +1321,7 @@ void Unit::CalculateMeleeDamage(Unit *pVictim, uint32 damage, CalcDamageInfo *da damageInfo->procEx |= PROC_EX_BLOCK; damageInfo->blocked_amount = damageInfo->target->GetShieldBlockValue(); //double blocked amount if block is critical - if (isBlockCritical()) + if (damageInfo->target->isBlockCritical()) damageInfo->blocked_amount+=damageInfo->blocked_amount; if (damageInfo->blocked_amount >= damageInfo->damage) { -- cgit v1.2.3