-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use
Question
The0dark0one
I'm not sure if this is the right forum for this but I've been working on my own custom server and have made some very interesting changes. Most spells and talents have been rearranged onto different classes to create a fresh experience.
Here's the problem I have ran into. When I moved talents like Improved Frostbolt onto a different character, it ceased to function.
This is easy to reproduce:
I've verified that the Improved Frostbolt aura is on my characters but it is not actually reducing the cast time as intended. I've exhaustively researched this issue in the source code for about 5 days now and I'm not sure I'm closer to figuring this out.
I know how the HandleAddModifier function works.
It creates the Spell Modifier using info from the DBC. AuraName is 107 which indicates that it is adding a flat spell modifier. Misc value is 10 which indicates that it is a spellmod_casting_time modifier. The amount comes from a SimpleCalculation of the base dice 1 and the base amount -501 adding together to make -500 which is 500 milliseconds less than the original cast time.
My theory is that the problem for me is somewhere in this Template <class T> Player::ApplySpellMod function.
I believe this is where spell cast times are being calculated for the different classes I believe but I've no idea why it only works for the right classes. Frankly I'm not even sure what a template function is. Can anyone offer any help or suggestions?
6 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.