Skip to content

Commit

Permalink
[9273] Implement item 49623 triggered stacking affect.
Browse files Browse the repository at this point in the history
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
  • Loading branch information
laise authored and VladimirMangos committed Jan 31, 2010
1 parent e1e18b7 commit bff1cd4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/game/SpellEffects.cpp
Expand Up @@ -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;
Expand Down
18 changes: 18 additions & 0 deletions src/game/Unit.cpp
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion 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__

0 comments on commit bff1cd4

Please sign in to comment.