[Maps] Ensure the resurrection when entering instantiable map
This commit is contained in:
parent
d9824f4129
commit
bdd3dc43a3
@ -1560,6 +1560,11 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati
|
|||||||
SendTransferAbortedByLockStatus(mEntry, lockStatus, miscRequirement);
|
SendTransferAbortedByLockStatus(mEntry, lockStatus, miscRequirement);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (IsDead()) // rare case of teleporting the player into an instance with no areatrigger participation
|
||||||
|
{
|
||||||
|
ResurrectPlayer(0.5f);
|
||||||
|
SpawnCorpseBones();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we were on a transport, leave
|
// if we were on a transport, leave
|
||||||
|
Loading…
x
Reference in New Issue
Block a user