From 97a8114e44f9b2520a253ffe3eb94fadc88ed181 Mon Sep 17 00:00:00 2001 From: Lightguard Date: Sun, 2 Aug 2009 11:05:37 +0400 Subject: [PATCH] [8296] Restore mana to caster instead target at specific effect of 53209. Signed-off-by: VladimirMangos --- src/game/SpellEffects.cpp | 4 +++- src/shared/revision_nr.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index de7e89d32..dc07e2e7e 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -5166,6 +5166,7 @@ void Spell::EffectScriptEffect(uint32 effIndex) { uint32 spellId = 0; int32 basePoint = 0; + Unit* target = unitTarget; Unit::AuraMap& Auras = unitTarget->GetAuras(); for(Unit::AuraMap::iterator i = Auras.begin(); i != Auras.end(); ++i) { @@ -5190,6 +5191,7 @@ void Spell::EffectScriptEffect(uint32 effIndex) { spellId = 53358; // 53358 Chimera Shot - Viper basePoint = aura->GetModifier()->m_amount * 4 * 60 / 100; + target = m_caster; } // Scorpid Sting - Attempts to Disarm the target for 10 sec. This effect cannot occur more than once per 1 minute. if (familyFlag & UI64LIT(0x0000000000008000)) @@ -5202,7 +5204,7 @@ void Spell::EffectScriptEffect(uint32 effIndex) //} } if (spellId) - m_caster->CastCustomSpell(unitTarget, spellId, &basePoint, 0, 0, false); + m_caster->CastCustomSpell(target, spellId, &basePoint, 0, 0, false); return; } default: diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 56f454570..7294c629e 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 "8295" + #define REVISION_NR "8296" #endif // __REVISION_NR_H__