From f23a3adb36065fdfdbee7603c021bb413fb6d9e3 Mon Sep 17 00:00:00 2001 From: p0wer Date: Mon, 19 Apr 2010 15:36:17 -0500 Subject: Fix crash involved with DK talent Blade Barrier. --HG-- branch : trunk --- src/game/Unit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game/Unit.cpp') diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 566112eacd3..2f62ed6a0ee 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -8210,7 +8210,10 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig // Blade Barrier if (auraSpellInfo->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && auraSpellInfo->SpellIconID == 85) { - if (this->GetTypeId() != TYPEID_PLAYER || !this->ToPlayer()->IsBaseRuneSlotsOnCooldown(RUNE_BLOOD)) + if (this->GetTypeId() != TYPEID_PLAYER) + return false; + + if(!this->ToPlayer()->IsBaseRuneSlotsOnCooldown(RUNE_BLOOD)) return false; } -- cgit v1.2.3