mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* fixed default stamina on otserv 0.6.x engine
This commit is contained in:
parent
79589ed1f4
commit
d9510b01ba
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user