aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKrudor <erikstrandberg93@hotmail.com>2016-10-09 21:54:55 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2016-10-09 21:57:36 +0200
commit73a72fb7d3d7e504f3eecc801f7e3a95893e5741 (patch)
treeeb35395ee39fcdd83947b249b2e9f494ec46af0c /src
parentb60b0d927bb1d9f81a650748901293fce93de3cf (diff)
Core/Spells: Effect leap back fix (#18057)
* Fixed unintentional typo? Seemed to fix the issues related to the effect for the spells I tried. Sometimes the caster triggers leapback onto targets, and with the old code, it instead made the caster leap back instead of its targets (cherry picked from commit 08aab73c7fd0a76caeecc244fc40dbf30cd23e51)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index 1b570e7778c..909cce7abe5 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -4757,7 +4757,7 @@ void Spell::EffectLeapBack(SpellEffIndex effIndex)
float speedxy = m_spellInfo->Effects[effIndex].MiscValue / 10.f;
float speedz = damage/ 10.f;
//1891: Disengage
- m_caster->JumpTo(speedxy, speedz, m_spellInfo->SpellIconID != 1891);
+ unitTarget->JumpTo(speedxy, speedz, m_spellInfo->SpellIconID != 1891);
}
void Spell::EffectQuestClear(SpellEffIndex effIndex)