[7924] Not teleport player to non-player caster at ressurection. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-31 16:25:27 -05:00
parent 72cab37bcc
commit 5612f1221c
+3 -2
View File
@@ -19497,8 +19497,9 @@ uint32 Player::GetBaseWeaponSkillValue (WeaponAttackType attType) const
void Player::ResurectUsingRequestData() void Player::ResurectUsingRequestData()
{ {
/// Teleport before resurrecting, otherwise the player might get attacked from creatures near his corpse /// Teleport before resurrecting by player, otherwise the player might get attacked from creatures near his corpse
TeleportTo(m_resurrectMap, m_resurrectX, m_resurrectY, m_resurrectZ, GetOrientation()); if(IS_PLAYER_GUID(m_resurrectGUID))
TeleportTo(m_resurrectMap, m_resurrectX, m_resurrectY, m_resurrectZ, GetOrientation());
ResurrectPlayer(0.0f,false); ResurrectPlayer(0.0f,false);