Core/Spells: cleanup in Blade Barrier code

This commit is contained in:
tobmaps
2011-06-02 19:21:10 +07:00
parent d70fd93e41
commit 508f14fa6c

View File

@@ -7974,7 +7974,7 @@ bool Unit::HandleAuraProc(Unit * pVictim, uint32 damage, Aura * triggeredByAura,
if (!caster || !damage)
return false;
//last charge and crit
// last charge and crit
if (triggeredByAura->GetCharges() <= 1 && (procEx & PROC_EX_CRITICAL_HIT))
return true; // charge counting (will removed)
@@ -8717,8 +8717,8 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig
// Blade Barrier
if (auraSpellInfo->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && auraSpellInfo->SpellIconID == 85)
{
Player * plr = this->ToPlayer();
if (this->GetTypeId() != TYPEID_PLAYER || !plr || plr->getClass() != CLASS_DEATH_KNIGHT)
Player* plr = ToPlayer();
if (!plr || plr->getClass() != CLASS_DEATH_KNIGHT)
return false;
if (!plr->IsBaseRuneSlotsOnCooldown(RUNE_BLOOD))