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