exclude dead entities from auto-attack target selection

This commit is contained in:
2025-01-23 11:17:16 +09:00
parent 15e72a9e10
commit 55e5e8117c
5 changed files with 58 additions and 85 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ export default class Game {
if (options.action == 'attack') { entity.attackAction(new Vector2(options.x, options.y)) }
if (options.action == 'cast') { entity.castAction(options.slot, new Vector2(options.x, options.y)) }
if (options.action == 'halt') { entity.haltAction(), delay }
if (options.action == 'halt') { entity.haltAction() }
if (options.action == 'stop') { entity.stopAction() }
if (options.action == 'move') { entity.moveAction(new Vector2(options.x, options.y)) }
}