From 0b23087991e077b8e997cdcfda348b7fa387e760 Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Fri, 25 Dec 2009 15:39:06 +0100 Subject: [PATCH] Correctly cast rank 2 mana regent triggred effect for 53228 and ranks. by Splinter --HG-- branch : trunk --- src/game/Unit.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index c00843b44b2..888f51ce201 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -6343,13 +6343,24 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger break; } // Rapid Recuperation - if ( dummySpell->SpellIconID == 3560 ) + if (dummySpell->SpellIconID == 3560) { // This effect only from Rapid Killing (mana regen) if (!(procSpell->SpellFamilyFlags[1] & 0x01000000)) return false; triggered_spell_id = 56654; + target = this; + + switch(dummySpell->Id) + { + case 53228: // Rank 1 + triggered_spell_id = 56654; + break; + case 53232: // Rank 2 + triggered_spell_id = 58882; + break; + } break; } break;