From 05a3da754ee8cfa786a0aa243372280e3e2b7615 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 14 Nov 2008 14:25:20 -0600 Subject: [svn] Let caster face target after casting shadowstep. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3