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

Improve pudge hook #109

Merged
merged 3 commits into from
Jul 1, 2023
Merged

Conversation

JoshdanG
Copy link
Collaborator

@JoshdanG JoshdanG commented Jun 25, 2023

  1. Minor fix for search radius: use bounding box of interfering unit rather than target when calculating collisions
  2. Fix ally saving calculation; previously it would always result in error
  3. Labelled abilities with comments

Note: a fix for Remove() in a separate commit/PR causes pudge to use hook less, because he can (mostly) tell things are in the way.

JoshdanG added 2 commits June 24, 2023 18:17
Minor fix for search radius: use bounding box of interfering unit
rather than target when calculating collisions

Fix ally saving calculation; would always result in error previously

Note: with recent fix for Remove(), pudge uses hook less,
because he can (mostly) tell things are in the way
local ally = AbilityExtensions:GetNearbyNonIllusionHeroes(npcBot, range, false, BOT_MODE_NONE):Filter(allies
, function(t)
local ally = AbilityExtensions:GetNearbyNonIllusionHeroes(npcBot, range, false, BOT_MODE_NONE):
Filter(function(t)
return t:IsStunned() or t:IsRooted()
Copy link
Owner

Choose a reason for hiding this comment

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

Does this line need an extra indent?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I think an indent is more correct. Changed.

@adamqqqplay adamqqqplay merged commit bb32f4d into adamqqqplay:master Jul 1, 2023
@JoshdanG JoshdanG deleted the improve_pudge_hook branch July 1, 2023 06:26
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.

3 participants