From d9530eea573e715bd600de29b8d62f32e42276d7 Mon Sep 17 00:00:00 2001 From: Anubisss Date: Sat, 24 Oct 2009 00:40:11 +0200 Subject: [PATCH] *Fix this part of Rime: "Obliterate has a 15% chance to reset the cooldown on Howling Blast". Patch by thenecromancer. --HG-- branch : trunk --- src/game/Unit.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 90d4d6c166a..1bf919b133f 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -7631,8 +7631,20 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, AuraEffect* trig // Blade Barrier if (auraSpellInfo->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && auraSpellInfo->SpellIconID == 85) + { if (this->GetTypeId() != TYPEID_PLAYER || !((Player*)this)->IsBaseRuneSlotsOnCooldown(RUNE_BLOOD)) return false; + } + + // Rime + else if (auraSpellInfo->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && auraSpellInfo->SpellIconID == 56) + { + if (GetTypeId() != TYPEID_PLAYER) + return false; + + // Howling Blast + ((Player*)this)->RemoveSpellCategoryCooldown(1248, true); + } // Custom basepoints/target for exist spell // dummy basepoints or other customs