From 2e46b7e65d9d798dc5525612c893860cd0d86722 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 22 May 2009 16:49:37 -0500 Subject: [PATCH] [7876] Implemented dummy effect /*and special target selection*/ for 52759. Author: ApoC --HG-- branch : trunk --- src/game/Spell.cpp | 1 + src/game/SpellEffects.cpp | 5 +++++ src/game/Unit.cpp | 1 - 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 1236129e15..0ea03caad5 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -2297,6 +2297,7 @@ void Spell::SetTargetMap(uint32 i, uint32 cur) } else if (m_spellInfo->EffectImplicitTargetA[i] == TARGET_DEST_TARGET_ANY && m_spellInfo->EffectImplicitTargetB[i] == TARGET_UNIT_AREA_ALLY_DST)// Wild Growth, Circle of Healing target special selection + // TODO: is Ancestral Awakening implemented? { typedef std::priority_queue, PrioritizeHealth> TopHealth; TopHealth healedMembers; diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index eb50a98f03..696071dec9 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1306,6 +1306,11 @@ void Spell::EffectDummy(uint32 i) } return; } + case 52759: // Ancestral Awakening + if (!unitTarget) + return; + m_caster->CastCustomSpell(unitTarget, 52752, &damage, NULL, NULL, true); + return; case 53341: case 53343: { diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 1f7efb01c3..47bb7307a2 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -6409,7 +6409,6 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger // Ancestral Awakening if (dummySpell->SpellIconID == 3065) { - // TODO: frite dummy fot triggered spell triggered_spell_id = 52759; basepoints0 = triggerAmount * damage / 100; target = this;