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 rogue talent Improved Sprint #31
Conversation
Fix rogue sprint no longer working when talent Improved Sprint was active Signed-off-by: cala <calaftp@free.fr>
Not entirely sure here - with wotlk at least there are many spells with this spell-icon. |
this is correct for classic, I fixed it years ago using the same method |
I see mangoszero had another approach: mangoszero/server@1781ac3 without using spell-icon. I have not tested it though. |
Ok, the second commit is a horrible, ugly and stupid hack |
That confirms what I was thinking: I am as good as developing to core than turning lead into gold. :P |
.cast 11305 on classic debug log result with improved sprint talent
.cast 11305 on classic debug log result without improved sprint talent
.cast 30918 on classic debug log
ON 3.3.5
.cast 30198
Some conclusions: I tempted to follow the code but has always about aura its hard. Any help is welcome :) |
There's this bit in IsNoStackSpellDueToSpell: // Allow stack passive and not passive spells
if (spellInfo_1->HasAttribute(SPELL_ATTR_PASSIVE) != spellInfo_2->HasAttribute(SPELL_ATTR_PASSIVE))
return false; Improved Sprint is passive and Sprint is not, so I don't know how they could interfere with each other. |
@Schmoozerd or @Patman64 what do you think about that -> cyberium@480178d |
I have a same pull request to submit, and make sure this patch works very well |
@@ -2064,6 +2064,9 @@ bool SpellMgr::IsNoStackSpellDueToSpell(uint32 spellId_1, uint32 spellId_2) cons | |||
// Garrote -> Garrote-Silence (multi-family check) | |||
if (spellInfo_1->SpellIconID == 498 && spellInfo_2->SpellIconID == 498 && spellInfo_2->SpellVisual == 0) | |||
return false; | |||
// Improved Sprint && Sprint | |||
if (spellInfo_1->SpellIconID == 516 && spellInfo_2->SpellIconID == 516) |
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.
if ((spellInfo_1->SpellIconID == 516) && (spellInfo_2->SpellIconID == 516))
Is it better? Thank you..
I invited lot of players to test this patch, and got the same feedback, this patch works very well, @Schmoozerd , could you please merge this pull request? |
@wowpsp Your patch will
However it might not be generic enough and hence not address similar issues for other spell-stacking problems. On the other hand the approach @cyberium suggests
Some more thoughts on Cyberium's approach: In conclusion i think that using the direct approach is a reasonable choice, as this is player spell, and hence is relevant only within the scope of the class. |
@Schmoozerd yes i confirm my approach have WANTED side effect, @wowpsp, your approach will resolve this issue in this client version. conclusion i think also we could add @wowpsp patch till another more generic solution found (who know :) ) |
Thank you @Schmoozerd , thank you @cyberium ... |
not working for me |
Isn't it possible to match the 2 types of Aura? (109 & 31) or just based on the Id's?
Or even better (and ofc the check where spell1 and spell2 swap places)
|
Adding a spell can affect method to check if a spell can affect another. This fix improved sprint talent and improved sap and probably more This broke.. Hopefuly nothing... close cmangos/mangos-classic#31 close cmangos/issues#234
Adding a spell can affect method to check if a spell can affect another. This fix improved sprint talent and improved sap and probably more This broke.. Hopefuly nothing... close cmangos/mangos-classic#31 close cmangos/issues#234
Adding a spell can affect method to check if a spell can affect another. This fix improved sprint talent and improved sap and probably more This broke.. Hopefuly nothing... close cmangos/mangos-classic#31 close cmangos/issues#234
Fix rogue sprint no longer working when talent Improved Sprint was active
This commit 482ca12 is one of those pending backports from old mangos-zero concatenated in: https://github.com/cmangos/issues/wiki/classic_backporting-todo-zero-commits
I tested it and this is my report: