exclude dead entities from auto-attack target selection
This commit is contained in:
+1
-1
@@ -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)) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user