Core/Movement: Remove deprecated method Creature::AI_SendMoveToPacket.

This commit is contained in:
kaelima
2012-11-23 20:18:55 +01:00
parent 7fcdbdd3ae
commit fc974d6fbe
3 changed files with 6 additions and 31 deletions

View File

@@ -358,14 +358,14 @@ public:
if (TeleportTimer <= diff)
{
//temp solution - unit can't be teleported by core using spelleffect 5, only players
if (me->GetMap())
{
me->SetPosition(3706.39f, -3969.15f, 35.9118f, 0);
me->AI_SendMoveToPacket(3706.39f, -3969.15f, 35.9118f, 0, 0, 0);
}
// temp solution - unit can't be teleported by core using spelleffect 5, only players
DoTeleportTo(3706.39f, -3969.15f, 35.9118f);
//begin swimming and summon depth charges
Player* player = Unit::GetPlayer(*me, PlayerGUID);
if (!player)
return;
SendText(MSG_ESCAPE_NOTICE, player);
DoCast(me, SPELL_PERIODIC_DEPTH_CHARGE);
me->SetUnitMovementFlags(MOVEMENTFLAG_HOVER | MOVEMENTFLAG_SWIMMING);