Flight stamina cost -20% when Amber or Venti in team

- Reduced stamina not tested in MP.
- Stop MovementManager ticker when player goes offline.
This commit is contained in:
gentlespoon
2022-05-06 23:12:15 -07:00
committed by Melledy
parent 00d15a5c89
commit 34df864e1c
2 changed files with 123 additions and 73 deletions

View File

@@ -1151,8 +1151,11 @@ public class Player {
}
public void onLogout() {
// stop stamina calculation
getMovementManager().resetTimer();
// force to leave the dungeon
if(getScene().getSceneType() == SceneType.SCENE_DUNGEON){
if (getScene().getSceneType() == SceneType.SCENE_DUNGEON) {
this.getServer().getDungeonManager().exitDungeon(this);
}
// Leave world