diff options
author | Machiavelli <none@none> | 2010-12-25 03:18:21 +0100 |
---|---|---|
committer | Machiavelli <none@none> | 2010-12-25 03:18:21 +0100 |
commit | d587948a0fc607ddb68403d6617fc498b14cef66 (patch) | |
tree | a92d7f523138dee7fd4aa01f482a64f9ed8d2659 | |
parent | 06955a1113bc921335c944adf8a193ce7c79c95d (diff) |
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
-rwxr-xr-x | src/server/game/Spells/SpellEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Creature*>(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); } } |