Core/Spells: Ignore category cooldowns for triggered spells.

* This fixes weird issues where triggered spell fails because it has the same category as the spell triggering it

Closes #15794
Closes #15048

(cherry picked from commit 044edced9a5b8f0a53640bfea4727eb9d38eae7f)
This commit is contained in:
Shauren committed 2016-01-22 22:14:28 +01:00
1 parent 1038df8d5b
commit 3f886025a2
6 files changed
+12 -29

No files matched your search

-3
View File
@@ -7099,9 +7099,6 @@ bool Unit::HandleDummyAuraProc(Unit* victim, uint32 damage, AuraEffect* triggere
float chance = 100.0f / procSpell->Effects[effIndex].ChainTarget;
if (!roll_chance_f(chance))
return false;
// Remove cooldown (Chain Lightning - has Category Recovery time)
GetSpellHistory()->ResetCooldown(spellId);
}
CastSpell(victim, spellId, true, castItem, triggeredByAura);