Core/Spell: Fix crash when blinking on transports in instancable maps
Closes #789
This commit is contained in:
@@ -2134,7 +2134,7 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
|
|||||||
if (duel && GetMapId() != mapid && GetMap()->GetGameObject(GetUInt64Value(PLAYER_DUEL_ARBITER)))
|
if (duel && GetMapId() != mapid && GetMap()->GetGameObject(GetUInt64Value(PLAYER_DUEL_ARBITER)))
|
||||||
DuelComplete(DUEL_FLED);
|
DuelComplete(DUEL_FLED);
|
||||||
|
|
||||||
if ((GetMapId() == mapid && !m_transport) || (GetTransport() && GetMapId() == 628))
|
if (GetMapId() == mapid)
|
||||||
{
|
{
|
||||||
//lets reset far teleport flag if it wasn't reset during chained teleports
|
//lets reset far teleport flag if it wasn't reset during chained teleports
|
||||||
SetSemaphoreTeleportFar(false);
|
SetSemaphoreTeleportFar(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user