Resolve circular dependency
This commit is contained in:
parent
dc63079081
commit
9a24161eea
1 changed files with 1 additions and 1 deletions
|
|
@ -351,7 +351,7 @@ const onEntity = (text: string, roomId: string, sender: string) => {
|
|||
const onFight = (text: string, roomId: string, sender: string) => {
|
||||
const player = getPlayer(sender);
|
||||
|
||||
const entityName = text.replace(`${gamePrefix} entity `, "").trim();
|
||||
const entityName = text.replace(`${gamePrefix} fight `, "").trim();
|
||||
if (!existsEntity(entityName)) {
|
||||
client.sendTextMessage(roomId, "No such entity exists");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue