[svn] Let caster face target after casting shadowstep.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-14 14:25:20 -06:00
parent f6c1a7a93d
commit 05a3da754e

View File

@@ -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)