*Fix this part of Rime: "Obliterate has a 15% chance to reset the cooldown on Howling Blast". Patch by thenecromancer.

--HG--
branch : trunk
This commit is contained in:
Anubisss
2009-10-24 00:40:11 +02:00
parent ee22273ef4
commit d9530eea57

View File

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