Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About The Pull Request
Fixes some bugs with the new hostile ai, improves its performance a bit.
Cleaned up the obsolete MeleeAction proc that was needed for the old rapid_melee system in various mob files.
Distorted Form used to aggro through walls onto people it cant see and if they are in its close attack range it couldnt really leave its cell and only uses melee skills, now it will use ranged skills and jump attacks so long as it cant see any enemies. Fixed its toad form shifting pixel_x after jumps making it look like it occupies 2 tiles.
Fixed some possible runtime errors with Ebony Apple attacks.
Added AttackCondition proc for putting custom checks that are evaluated before AttackingTarget goes through.
Added a condition for amber dusks making them only be able to hit targets on the 5 tiles near their mouth. For solo this doesnt really change much as their turning and attacking are on separate timers but in a group people will be able to hit them from the back until aggro switches.
Why It's Good For The Game
Fixes some bugs and AI improvements.
Changelog
🆑
fix: Fixed some hostile ai issues.
fix: Distorted Form shouldnt get stuck in its cell now.
fix: Fixed Ebony Apple attacks sometimes causing errors if target is deleted mid attack.
code: Removed MeleeAction proc from hostiles.
tweak: Amber dusk worms can only attack the 5 tiles in front of them.
/:cl: