-
Notifications
You must be signed in to change notification settings - Fork 425
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
Added a check to stop Bard song for Mezz/Stun #1319
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At quick glance I think you have a logic short circuit issue
I'm fairly new to coding and PRs specifically. Any tips or could you further explain exactly what you mean? This is works for my server currently. |
if ((IsStunned() && bardsong != 0) || (IsMezzed() && bardsong != 0)) { is what @joligario was saying it should be, but we can shorten this if (bardsong != 0 && (IsStunned() || IsMezzed())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, after testing on live, a bard holding a song will not always be interrupted when they are stunned. I think fixing whatever is going wrong with stun at https://github.com/EQEmu/Server/blob/master/zone/spells.cpp#L4923 is a better fix. Probably just need to add some bardsong checks I guess since just the plain InterruptSpell()
call isn't cutting it. the Mob::Mesmerize()
function probably needs tweaking as well.
No description provided.