aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorp0wer <none@none>2010-04-19 15:36:17 -0500
committerp0wer <none@none>2010-04-19 15:36:17 -0500
commitf23a3adb36065fdfdbee7603c021bb413fb6d9e3 (patch)
treee3c235eed23cced196bb1154aa632fe79f2a9e4f /src
parentb48334c6064506e54e8c257a91c394193ee4ec9a (diff)
Fix crash involved with DK talent Blade Barrier.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp5
1 files changed, 4 insertions, 1 deletions
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;
}