Skip to content
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

Fix skywrath mage error when rooted / ancient seal when retreating #107

Merged
merged 1 commit into from
Jul 16, 2023

Conversation

JoshdanG
Copy link
Collaborator

@JoshdanG JoshdanG commented Jun 24, 2023

  1. Fixes skywrath runtime errors, and skywrath will now cast ancient seal at the most dangerous enemy when retreating.
    a. When considering ancient seal during retreat, the range calculation was wrong, and had a negative range unless movement speed was 0.
    b. When this happened (e.g. when rooted), it returned all nearby enemies instead of one target, causing an error (and preventing any ability use).
  2. Moved GetMostDangerousEnemy to a separate function since it is used in two places.
  3. Added comments with ability names

When considering ancient seal during retreat, the range calculation was wrong,
and had a negative range unless movement speed was 0.

When this happened (e.g. when rooted), it returned all nearby enemies instead
of one target, causing an error (and preventing any ability use).

These have been fixed so now skywrath will cast ancient seal at the
most dangerous enemy when retreating.

Moved GetMostDangerousEnemy to a separate function since it is used
in two places.
Added comments with ability names
Copy link
Owner

@adamqqqplay adamqqqplay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks a lot!

@adamqqqplay adamqqqplay merged commit f4fa24b into adamqqqplay:master Jul 16, 2023
@JoshdanG JoshdanG deleted the fix_skywrath_ancient_seal branch July 23, 2023 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants