[6933] Fixed resurrected players being attacked by creatures near their corpse although they were revived in a safe distance

This commit is contained in:
arrai 2008-12-20 14:17:03 +01:00
parent 7cc95eefb2
commit 513255585f
2 changed files with 4 additions and 3 deletions

View file

@ -18597,6 +18597,9 @@ uint32 Player::GetBaseWeaponSkillValue (WeaponAttackType attType) const
void Player::ResurectUsingRequestData()
{
/// Teleport before resurrecting, otherwise the player might get attacked from creatures near his corpse
TeleportTo(m_resurrectMap, m_resurrectX, m_resurrectY, m_resurrectZ, GetOrientation());
ResurrectPlayer(0.0f,false);
if(GetMaxHealth() > m_resurrectHealth)
@ -18614,8 +18617,6 @@ void Player::ResurectUsingRequestData()
SetPower(POWER_ENERGY, GetMaxPower(POWER_ENERGY) );
SpawnCorpseBones();
TeleportTo(m_resurrectMap, m_resurrectX, m_resurrectY, m_resurrectZ, GetOrientation());
}
void Player::SetClientControl(Unit* target, uint8 allowMove)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "6932"
#define REVISION_NR "6933"
#endif // __REVISION_NR_H__