diff options
| author | megamage <none@none> | 2008-11-14 14:25:20 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2008-11-14 14:25:20 -0600 |
| commit | 05a3da754ee8cfa786a0aa243372280e3e2b7615 (patch) | |
| tree | 97b6e9d4fcb8950e51b3e4eef485da52878ed789 /src | |
| parent | f6c1a7a93de23b6a8669707e74bc06421b04e350 (diff) | |
[svn] Let caster face target after casting shadowstep.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/SpellEffects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 190b8aa021f..079ebd059b4 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1984,7 +1984,7 @@ void Spell::EffectTeleportUnits(uint32 i) float x = m_targets.m_destX; float y = m_targets.m_destY; float z = m_targets.m_destZ; - float orientation = unitTarget->GetOrientation(); + float orientation = m_targets.getUnitTarget() ? m_targets.getUnitTarget()->GetOrientation() : unitTarget->GetOrientation(); sLog.outDebug("Spell::EffectTeleportUnits - teleport unit to %u %f %f %f\n", mapid, x, y, z); // Teleport if(unitTarget->GetTypeId() == TYPEID_PLAYER) |
