-
-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1106 - Bunny Hop triggers however an enemy comes into proximity with the Bunny #1939
Conversation
@DreadKnight Are there any other displacement type abilities I should test this with? |
src/abilities/Snow-Bunny.js
Outdated
enemyInFront && | ||
/* Only the active enemy creature should trigger the Hop, not other enemy | ||
creatures that happen to be nearby. */ | ||
enemyInFront === this.game.activeCreature && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really. Basically a friend or foe could move an enemy unit in front of Snow Bunny, which should trigger the passive.
Scavenger can use Escort Service ability to move units around.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MR updated, see my comment below: #1939 (comment)
@nandastone I've left review regarding Scavenger's Escort Service. So the passive shouldn't work just vs active units. |
@DreadKnight MR updated. Examples: Regular hop: Angled hop: Whip Move displacing hop: Escort Service displacing hop: Escort service between two enemies hop: Escort service between two enemies double hop (upgraded): Baseball baton hop: Invalid move no hop: Angled fallback hop: Interested to know if any of my functions for determining enemy position could be replaced with existing helper functions in the codebase. |
Seems you had quite the fun with this. So far tests are pretty good. There are situation where Bunny hops twice when he could have hopped just once to get out of danger, but that's fine, as it would rather become way more complex and we'll just assume he's not thinking straight so definitely not making the best and most efficient moves. Regarding helper function, maybe when abilities will get revamped and become modular as of issue #1469 in order to have an API and avoid reinvesting the wheel so much. Great job once again! 👏🏻 I'll merge this and will just open new issues if I do happen to find some given time, we'll see. |
Bunny Hop triggers however an enemy comes into proximity with the Bunny, fixes FreezingMoon#1106
This MR allows the Bunny Hop ability to trigger when:
When Bunny is frozen: