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(core/func): GetSpeedRate + SetSpeedRate + ifdefs #155

Merged
merged 6 commits into from
Oct 14, 2023

Conversation

svenbledt
Copy link

Fixxed: SetSpeed and GetSpeed Function
Added: SetSpeedRate and GetSpeedRate
Removed: Unnecessary Ifdef's

Foe recognized on the azerothcore mod-eluna repo that the SetSpeed function is using the wrong SetSpeedRate member of unit.

This PR changes that and seperates the functions from each other.

Also we decided to remove the ifdefs that are not needed as the module is only for azerothcore and not for Trinty or Mangos.

You can test this PR by using the functions in a script and check the impact ;)

Thanks for your time!

Fixxed: SetSpeed and GetSpeed Function
Added: SetSpeedRate and GetSpeedRate
Removed: Unnecessary Ifdef's
@55Honey
Copy link
Member

55Honey commented Oct 3, 2023

Thanks for the PR!

@r-o-b-o-t-o
Copy link
Member

Thanks for your PR!
It would have been nice if the ifdefs were removed in a separate PR, it would have improved readability and traceability 😛

It looks like you're not using forced in SetSpeedRate? If that was a leftover from copy-pasting the other function, please remove the variable.

Remove forced as its not used in SetSpeedRate
@55Honey
Copy link
Member

55Honey commented Oct 11, 2023

@svenbledt build is failing. Want to adjust?

@svenbledt
Copy link
Author

@svenbledt build is failing. Want to adjust?

i sadly dont know why build is failing :D worked fine on my end :o

Copy link
Member

@r-o-b-o-t-o r-o-b-o-t-o left a comment

Choose a reason for hiding this comment

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

The CI should work again now.
Sorry I forgot to mention this earlier, could you please add a change to the README file to document your additions? See an example here

src/LuaEngine/UnitMethods.h Outdated Show resolved Hide resolved
src/LuaEngine/UnitMethods.h Show resolved Hide resolved
src/LuaEngine/UnitMethods.h Show resolved Hide resolved
src/LuaEngine/UnitMethods.h Show resolved Hide resolved
Copy link
Author

@svenbledt svenbledt left a comment

Choose a reason for hiding this comment

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

Thanks mate

README.md Outdated Show resolved Hide resolved
@r-o-b-o-t-o r-o-b-o-t-o merged commit a3997ac into azerothcore:master Oct 14, 2023
1 check passed
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