* fixed default stamina on otserv 0.6.x engine

This commit is contained in:
slawkens1 2018-01-13 19:57:55 +01:00
parent 79589ed1f4
commit d9510b01ba

View File

@ -140,7 +140,11 @@ if($save) {
$player->setPosX(0);
$player->setPosY(0);
$player->setPosZ(0);
$player->setStamina($config['otserv_version'] == TFS_03 ? 151200000 : 2520);
if(fieldExist('stamina', 'players')) {
$player->setStamina($char_to_copy->getStamina());
}
if(fieldExist('loss_experience', 'players')) {
$player->setLossExperience($char_to_copy->getLossExperience());
$player->setLossMana($char_to_copy->getLossMana());