From d587948a0fc607ddb68403d6617fc498b14cef66 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sat, 25 Dec 2010 03:18:21 +0100 Subject: Core/Spells: Use a workaround for Grab Crate, cast triggered spell with original caster as caster instead of target. Previous approach was prone to out of range errors. Spell will now correctly restore 25 Pyrite energy (assuming aura 62495 is present to trigger the initial handler) --HG-- branch : trunk --- src/server/game/Spells/SpellEffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp index f87d9ef140f..ec171acc023 100755 --- a/src/server/game/Spells/SpellEffects.cpp +++ b/src/server/game/Spells/SpellEffects.cpp @@ -5070,7 +5070,7 @@ void Spell::EffectScriptEffect(SpellEffIndex effIndex) if (Creature *oldContainer = dynamic_cast(seat->GetPassenger(1))) oldContainer->DisappearAndDie(); // TODO: a hack, range = 11, should after some time cast, otherwise too far - unitTarget->CastSpell(seat->GetBase(), 62496, true); + m_caster->CastSpell(seat->GetBase(), 62496, true); unitTarget->EnterVehicle(seat, 1); } } -- cgit v1.2.3