Throwing an item shouldnt trigger wait
This commit is contained in:
@@ -20,6 +20,10 @@ export function applyAction(w: World, actorId: EntityId, action: Action, em?: En
|
||||
case "attack":
|
||||
events.push(...handleAttack(w, actor, action, em));
|
||||
break;
|
||||
case "throw":
|
||||
// Throwing consumes a turn but visuals are handled by the renderer/scene directly
|
||||
// so we do NOT emit a "waited" event.
|
||||
break;
|
||||
case "wait":
|
||||
default:
|
||||
events.push({ type: "waited", actorId });
|
||||
|
||||
Reference in New Issue
Block a user