Core/Movement: Players should not get instantly teleported to graveyard when falling under map

This commit is contained in:
Shauren
2011-09-30 18:40:09 +02:00
parent da54fb92d5
commit cde2427cab
@@ -374,17 +374,11 @@ void WorldSession::HandleMovementOpcodes(WorldPacket & recv_data)
{
plMover->EnvironmentalDamage(DAMAGE_FALL_TO_VOID, GetPlayer()->GetMaxHealth());
// pl can be alive if GM/etc
// change the death state to CORPSE to prevent the death timer from
// starting in the next player update
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
plMover->RepopAtGraveyard();
}
}
}