Resolve circular dependency

This commit is contained in:
Aslan 2026-01-23 10:53:33 -05:00
parent dc63079081
commit 9a24161eea

View file

@ -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;