diff options
author | Anubisss <none@none> | 2009-10-24 00:40:11 +0200 |
---|---|---|
committer | Anubisss <none@none> | 2009-10-24 00:40:11 +0200 |
commit | d9530eea573e715bd600de29b8d62f32e42276d7 (patch) | |
tree | 6440a6d59458fe655bc466d8c4a7fc9f008c1bdb | |
parent | ee22273ef4d75a727902b7f80b646bd26bfd6bce (diff) |
*Fix this part of Rime: "Obliterate has a 15% chance to reset the cooldown on Howling Blast". Patch by thenecromancer.
--HG--
branch : trunk
-rw-r--r-- | src/game/Unit.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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 |