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

Unit:GetFriendlyUnitsInRange( range ) not returning correct units #447

Closed
Maha225 opened this issue Sep 24, 2023 · 3 comments
Closed

Unit:GetFriendlyUnitsInRange( range ) not returning correct units #447

Maha225 opened this issue Sep 24, 2023 · 3 comments

Comments

@Maha225
Copy link

Maha225 commented Sep 24, 2023

Description: I did some testing in cmangos classic (latest from Niam5). It seems that the Unit:GetFriendlyUnitsInRange( range ) returns table of enemies and neutrals. Not friendlies.

testCommand
testCommand_2

@Rochet2
Copy link
Member

Rochet2 commented Sep 24, 2023

All of the cores seem to use AnyFriendlyUnitInObjectRangeCheck as expected:

However, it looks like the core side implementation on cmangos classic is not checking for friendliness:

So it looks like a core side issue for cmangos classic.
Though it could be possible to also make a custom searcher on our side, it should probably be fixed on cmangos side.

@Rochet2
Copy link
Member

Rochet2 commented Sep 24, 2023

Looks like in this commit they for some reason renamed the old friendly searcher and made a new one that doesnt actually check for friendliness
image

I submitted a ticket on cmangos side here

@Maha225
Copy link
Author

Maha225 commented Sep 24, 2023

Oh it's on their end, well I am happy that you figured it out! Thank you!

@Maha225 Maha225 closed this as completed Sep 24, 2023
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

No branches or pull requests

2 participants