Good evening!
I experienced a strange behavior of all the class trainers.
On my server all spells are green (and also buyable) every time speaking to a class trainer. But every time after buying one spell, all the others which are usually not buyable at this moment are turning red. There are no wrong spells shown or anything like that. Its just all about the level requirements of the spells, they seemed to be ignored at the beginning. After closing the interface and talking to the trainer again, it's the same behavior, every spell is buyable, but after buying one spell, everything is fine again.
I'm not very experienced in these things but I managed to find out that these bug took place within the changes made from v22.02.65 to v22.02.67 and I think it might belong to line 4764 in src\game\Object\Player.cpp where I changed
if (prof || trainer_spell->reqLevel && (trainer_spell->reqLevel) < reqLevel)
to the following based on the changes made between both versions
if (prof || trainer_spell->reqLevel && (getLevel() < reqLevel))
Within the latest repository from git and compiled with VS2022 it works as intended to! Tested again without named change it shows the described behavior.
I would appreciate if you can test it and take over this change with the next release. Please don't hesitate to contact me if further informations are needed.
Sorry for my bad english :)
Kind Regards
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now