Fix crash involved with DK talent Blade Barrier.

--HG--
branch : trunk
This commit is contained in:
p0wer
2010-04-19 15:36:17 -05:00
parent b48334c606
commit f23a3adb36

View File

@@ -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;
}