[7652] Fixed unexpected GM death at deep swim.

This commit is contained in:
VladimirMangos 2009-04-12 02:32:20 +04:00
parent 1bf2138948
commit 278cd970f4
2 changed files with 9 additions and 5 deletions

View file

@ -317,10 +317,14 @@ void WorldSession::HandleMovementOpcodes( WorldPacket & recv_data )
if(plMover->isAlive())
{
plMover->EnvironmentalDamage(DAMAGE_FALL_TO_VOID, GetPlayer()->GetMaxHealth());
// change the death state to CORPSE to prevent the death timer from
// starting in the next player update
plMover->KillPlayer();
plMover->BuildPlayerRepop();
// pl can be alive if GM/etc
if(!plMover->isAlive())
{
// change the death state to CORPSE to prevent the death timer from
// starting in the next player update
plMover->KillPlayer();
plMover->BuildPlayerRepop();
}
}
// cancel the death timer here if started

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7651"
#define REVISION_NR "7652"
#endif // __REVISION_NR_H__