Skip to content

Harden mob state transitions against invalid targets#285

Open
snipercup wants to merge 1 commit into
maintenance2from
codex/add-taskmaster-functionality
Open

Harden mob state transitions against invalid targets#285
snipercup wants to merge 1 commit into
maintenance2from
codex/add-taskmaster-functionality

Conversation

@snipercup

Copy link
Copy Markdown
Owner

Summary

  • safeguard state transitions by validating mob targets and defaulting to idle when targets vanish
  • add target presence checks in follow, melee, and ranged states
  • record task completion for state-machine hardening

Testing

  • godot --headless --import
  • godot --headless -s --path "$PWD" addons/gut/gut_cmdln.gd -gexit -gdir=res://Tests/Unit

https://chatgpt.com/codex/tasks/task_e_68972bbf1f748325924ed6b8c120bdc4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant