Core/Movement: Players should not get instantly teleported to graveyard when falling under map
This commit is contained in:
@@ -374,18 +374,12 @@ void WorldSession::HandleMovementOpcodes(WorldPacket & recv_data)
|
|||||||
{
|
{
|
||||||
plMover->EnvironmentalDamage(DAMAGE_FALL_TO_VOID, GetPlayer()->GetMaxHealth());
|
plMover->EnvironmentalDamage(DAMAGE_FALL_TO_VOID, GetPlayer()->GetMaxHealth());
|
||||||
// pl can be alive if GM/etc
|
// pl can be alive if GM/etc
|
||||||
if (!plMover->isAlive())
|
|
||||||
{
|
|
||||||
// change the death state to CORPSE to prevent the death timer from
|
// change the death state to CORPSE to prevent the death timer from
|
||||||
// starting in the next player update
|
// starting in the next player update
|
||||||
|
if (!plMover->isAlive())
|
||||||
plMover->KillPlayer();
|
plMover->KillPlayer();
|
||||||
plMover->BuildPlayerRepop();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// cancel the death timer here if started
|
|
||||||
plMover->RepopAtGraveyard();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user