Improve follow abort message; avoid having to change it in backend
This commit is contained in:
parent
c2f5501236
commit
7bff782f7f
4 changed files with 28 additions and 32 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue