Improve follow abort message; avoid having to change it in backend

This commit is contained in:
PizZaKatZe 2021-12-14 01:35:00 +01:00
parent c2f5501236
commit 7bff782f7f
4 changed files with 28 additions and 32 deletions

View file

@ -67,9 +67,9 @@ vim: ft=typescript
function reset() {
if (followRole === followRoles.leader && followUsers.length > 0) {
gameScene.connection?.emitFollowAbort(followRole, gameManager.getPlayerName());
gameScene.connection?.emitFollowAbort(gameManager.getPlayerName(), "*");
} else {
gameScene.connection?.emitFollowAbort(followRole, followUsers[0]);
gameScene.connection?.emitFollowAbort(followUsers[0], gameManager.getPlayerName());
}
followStateStore.set(followStates.off);
followRoleStore.set(followRoles.leader);