Skip to content

[Minor] Fix the issue where Ares' "Flash.Duration" cannot override the weapon's repair flash effect. #1821

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

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

Sovietianqi
Copy link

I had to submit this pull request again because the previous two were accidentally closed due to my mistakes. As the Chinese saying goes, 'Third time’s the charm' (or literally 'Things should not be attempted more than three times'). I hope I won’t make the same silly mistake again this time.

@Sovietianqi Sovietianqi changed the title Fix the issue where Ares' "Flash.Duration" cannot override the weapon's repair flash effect. [Minor] Fix the issue where Ares' "Flash.Duration" cannot override the weapon's repair flash effect. Aug 16, 2025
@github-actions github-actions bot added the Minor Documentation is not required label Aug 16, 2025
@@ -214,6 +215,7 @@ class WarheadTypeExt

public:
ExtData(WarheadTypeClass* OwnerObject) : Extension<WarheadTypeClass>(OwnerObject)
, Flash_Duration { 0 }
Copy link
Contributor

Choose a reason for hiding this comment

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

, Flash_Duration {}

int nFlashDuration = 7;
if (auto pWH = pArgs->WH)
{
if (auto pWHEXT = WarheadTypeExt::ExtMap.Find(pWH))
Copy link
Contributor

Choose a reason for hiding this comment

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

Redundant check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Minor Documentation is not required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants