diff options
author | p0wer <none@none> | 2010-04-19 15:36:17 -0500 |
---|---|---|
committer | p0wer <none@none> | 2010-04-19 15:36:17 -0500 |
commit | f23a3adb36065fdfdbee7603c021bb413fb6d9e3 (patch) | |
tree | e3c235eed23cced196bb1154aa632fe79f2a9e4f | |
parent | b48334c6064506e54e8c257a91c394193ee4ec9a (diff) |
Fix crash involved with DK talent Blade Barrier.
--HG--
branch : trunk
-rw-r--r-- | src/game/Unit.cpp | 5 |
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; } |