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

Replace self:GetLauncher() #6594

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

MrRowey
Copy link
Member

@MrRowey MrRowey commented Dec 18, 2024

self:GetLauncher() > self.Launcher

Checklist

  • Changes are annotated, including comments where useful
  • Changes are documented in the changelog for the next game version

self:GetLauncher() > self.Launcher
@@ -295,7 +295,7 @@ CollisionBeam = Class(moho.CollisionBeamEntity) {
-- 'Shield'

if impactType == 'Unit' or impactType == 'UnitAir' or impactType == 'UnitUnderwater' then
if not self:GetLauncher() then
Copy link
Member

Choose a reason for hiding this comment

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

Have you tested this? I do not think the launcher is stored in the collision beam. And therefore self.Launcher may always be nil.

Copy link
Member Author

Choose a reason for hiding this comment

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

tbh i just did fined and replace with vscode

Copy link
Member

@Garanas Garanas Dec 25, 2024

Choose a reason for hiding this comment

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

The approach is fine, but you need to verify the changes. Did you do the same for #6592 and #6593?

If so, please test and verify the changes. If you do not have the time to do so, then in my opinion it is better to close the pull requests.

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