Changeset 227 for trunk

Show
Ignore:
Timestamp:
11/19/08 13:48:19 (17 years ago)
Author:
yumileroy
Message:

[svn] Let caster face target after casting shadowstep.

Original author: megamage
Date: 2008-11-14 14:25:20-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/SpellEffects.cpp

    r222 r227  
    19851985    float y = m_targets.m_destY; 
    19861986    float z = m_targets.m_destZ; 
    1987     float orientation = unitTarget->GetOrientation(); 
     1987    float orientation = m_targets.getUnitTarget() ? m_targets.getUnitTarget()->GetOrientation() : unitTarget->GetOrientation(); 
    19881988    sLog.outDebug("Spell::EffectTeleportUnits - teleport unit to %u %f %f %f\n", mapid, x, y, z); 
    19891989    // Teleport