From 9aedd3a8649c9b7d0c33d966773c3c9164b1627a Mon Sep 17 00:00:00 2001 From: laise Date: Sun, 31 Jan 2010 05:30:53 +0300 Subject: [PATCH] [9273] Implement item 49623 triggered stacking affect. Signed-off-by: VladimirMangos --- src/game/SpellEffects.cpp | 1 + src/game/Unit.cpp | 18 ++++++++++++++++++ src/shared/revision_nr.h | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 5e18c1bf2..54bb9091c 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -323,6 +323,7 @@ void Spell::EffectSchoolDMG(uint32 effect_idx) case 45150: // Meteor Slash case 64422: case 64688: // Sonic Screech case 70492: case 72505: // Ooze Eruption + case 71904: // Chaos Bane case 72624: case 72625: // Ooze Eruption { uint32 count = 0; diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 41cb14929..89b4c08eb 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -5279,6 +5279,24 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura* triggeredByAu case 63320: triggered_spell_id = 63321; break; + // Item - Shadowmourne Legendary + case 71903: + { + if (!roll_chance_i(triggerAmount)) + return false; + + Aura *aur = GetAura(71905, 0); + if (aur && aur->GetStackAmount() + 1 >= aur->GetSpellProto()->StackAmount) + { + RemoveAurasDueToSpell(71905); + CastSpell(this, 71904, true); // Chaos Bane + return true; + } + else + triggered_spell_id = 71905; + + break; + } } break; } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 3d0b09032..71bade043 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9272" + #define REVISION_NR "9273" #endif // __REVISION_NR_H__