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

Magtheridon: Add blast nova counter to addtime #221

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

ForestJ316
Copy link
Contributor

@ForestJ316 ForestJ316 commented Sep 26, 2024

Forgot to include the counter when adding time on P3 transition.

On a side note, apparently some people are having overlapping bars after the latest update? From what I heard Conflag bar and Blast Nova was overlapping, but I didn't have this issue. Maybe you have some more insight into it?

@ForestJ316 ForestJ316 marked this pull request as ready for review September 26, 2024 20:40
@Zidras
Copy link
Owner

Zidras commented Sep 26, 2024

Add time accepts extra args but only in the case original timer was less than 0.
Can this happen?

@Zidras
Copy link
Owner

Zidras commented Sep 26, 2024

As for the overlap, you mean visually, or mechanic overlap?
If the former, then it's faulty installation (head them over to the faq section of discord)

@ForestJ316
Copy link
Contributor Author

Add time accepts extra args but only in the case original timer was less than 0. Can this happen?

The timer being less than 0, I don't think so. Since there isn't a keep arg wouldn't it be 0 if the boss just doesn't cast blast nova on timer? At the moment it seemed to be accurate though. I do have an example of how it works without/with the extra arg.

Timer in Phase 2:
stage 2
Currently going into Phase 3:
stage3nofix
Going into Phase 3 with the counter arg:
stage3fix

As for the overlap, you mean visually, or mechanic overlap?
If the former, then it's faulty installation (head them over to the faq section of discord)

From what it sounded it was a visual issue. Okay, I'll let them know.

@Zidras
Copy link
Owner

Zidras commented Sep 27, 2024

Add time accepts extra args but only in the case original timer was less than 0. Can this happen?

The timer being less than 0, I don't think so. Since there isn't a keep arg wouldn't it be 0 if the boss just doesn't cast blast nova on timer? At the moment it seemed to be accurate though. I do have an example of how it works without/with the extra arg.

Timer in Phase 2: stage 2 Currently going into Phase 3: stage3nofix Going into Phase 3 with the counter arg: stage3fix

As for the overlap, you mean visually, or mechanic overlap?
If the former, then it's faulty installation (head them over to the faq section of discord)

From what it sounded it was a visual issue. Okay, I'll let them know.

Hmm less then zero is also non existent afaik. But let's say it was 5s left on p2 transition to p3, what would the expected result be?

@ForestJ316
Copy link
Contributor Author

ForestJ316 commented Sep 27, 2024

Blast nova cast would be 23s later as opposed to 5s later, at least based on what I checked so far. Those 3 timers just get +18s added to them as of right now. I would expect that the timer would be updated to reflect this.

@@ -83,7 +83,7 @@ function mod:CHAT_MSG_MONSTER_YELL(msg)
-- +18 to the timers
timerConflagration:AddTime(18)
timerQuake:AddTime(18)
timerBlastNovaCD:AddTime(18)
timerBlastNovaCD:AddTime(18, self.vb.blastNovaCounter)
Copy link
Owner

@Zidras Zidras Sep 27, 2024

Choose a reason for hiding this comment

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

Shouldn't it be this? The timer is for the next Blast Nova, not the current one

Suggested change
timerBlastNovaCD:AddTime(18, self.vb.blastNovaCounter)
timerBlastNovaCD:AddTime(18, self.vb.blastNovaCounter+1)

Copy link
Contributor Author

@ForestJ316 ForestJ316 Sep 27, 2024

Choose a reason for hiding this comment

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

It already gets incremented here.

elseif args.spellId == 30616 then
self.vb.blastNovaCounter = self.vb.blastNovaCounter + 1
specWarnBlastNova:Show(L.name)
specWarnBlastNova:Play("kickcast")
timerBlastNovaCD:Start(nil, self.vb.blastNovaCounter)
end

It's just adding 18 seconds to the current timer, so whatever the current bar is. The screenshots above should give you a good example of what the bug is currently.

Copy link
Owner

Choose a reason for hiding this comment

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

Ahh you started the counter at 1. that's not really standard practice in dbm, but since you don't use for the warnings, I'll leave it be

@Zidras Zidras merged commit ded8347 into Zidras:main Sep 27, 2024
1 check passed
@ForestJ316 ForestJ316 deleted the magTimer branch September 27, 2024 20:59
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