diff options
author | QAston <none@none> | 2009-04-18 02:31:19 +0200 |
---|---|---|
committer | QAston <none@none> | 2009-04-18 02:31:19 +0200 |
commit | 8af353f34acbd3b2fd9925c71fb2c5154205d410 (patch) | |
tree | 3029d1453c70389e4b4ed4f9698f075df8672cb2 /src | |
parent | 5b4b8b64b043b9bf5009643767d58a4e10d41d56 (diff) |
*Correct display of creatures teleported by spells.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Unit.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 281679bc3e6..6d613333ce3 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -13406,9 +13406,26 @@ void Unit::NearTeleportTo( float x, float y, float z, float orientation, bool ca ((Player*)this)->TeleportTo(GetMapId(), x, y, z, orientation, TELE_TO_NOT_LEAVE_TRANSPORT | TELE_TO_NOT_LEAVE_COMBAT | TELE_TO_NOT_UNSUMMON_PET | (casting ? TELE_TO_SPELL : 0)); else { + WorldPacket data; + /*data.Initialize(MSG_MOVE_TELEPORT, 30); + data.append(GetPackGUID()); + data << uint32(GetUnitMovementFlags()); + data << uint16(0); // Probably walk flags here + data << getMSTime(); // time + data << x; // destination coords + data << y; + data << z; + data << orientation; + data << uint32 (0); + // Other information here: jumping angle etc + SendMessageToSet(&data, false);*/ + + // FIXME: this interrupts spell visual + DestroyForNearbyPlayers(); + GetMap()->CreatureRelocation((Creature*)this, x, y, z, orientation); - WorldPacket data; + //WorldPacket data; // Work strange for many spells: triggered active mover set for targeted player to creature //BuildTeleportAckMsg(&data, x, y, z, orientation); BuildHeartBeatMsg(&data); |