GustavoContreiras / TheForgottenTibia

A free and open-source MMORPG written in C++ and Lua
GNU General Public License v3.0
18 stars 17 forks source link

stats refresh on skill/conditions spells #16

Closed nok1111 closed 4 years ago

nok1111 commented 5 years ago

stats no longer refresh on client side after using spells/conditions that add extra skill parameters as blood_rage and any other skill skill oriented.

example condition:setParameter(CONDITION_PARAM_SKILL_DEXTERITY, 50) server side working fine, client side not. the numbers turn green but the numbers wont go up.

this is a bug with the latest updates

GustavoContreiras commented 4 years ago

I'm almost sure it was this piece of code here (the comment): https://github.com/GustavoContreiras/TheForgottenTibia/blob/master/Server/src/weapons.cpp#L371

I had to comment it to make critical work on sources, but now lua scripts of weapons folder dont work and so dont add condition I think.

nok1111 commented 4 years ago

I think this will solve it 👍 need to test it https://github.com/GustavoContreiras/TheForgottenTibia/commit/408f8ba4868c5969004c824033114e5994dc995b