Perk attribute is not reset back to normal if the level is reduced.
Silvertide7 opened this issue ยท 1 comments
Describe the bug
My character was level 20 dexterity and gained a large increase in movement speed. I then cleared my characters attributes by using the /pmmo admin @s clear
command. My levels were cleared but my attribute increases were not reset. Setting it to level 0 does decrease the attribute correctly though.
Expected behavior
I no longer have the movement speed that 20 dexterity gave me after clearing my levels.
To Reproduce
Steps to reproduce the behavior:
Use the perk
[[Perks.For_Event.SKILL_UP]]
skill = "dexterity"
per_level = 0.001
perk = "pmmo:attribute"
attribute = "minecraft:generic.movement_speed"
max_boost = 0.02
Go in game and increase your dexterity to 20. Notice the increase in speed. Clear your levels using the above command. You will still have that increase in speed. Logging in and out doesn't fix it.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions:
- Minecraft: 1.20.1
- Loader: 47.1.44
- PMMO: 1.20.1-1.1.3
I am unable to reproduce this issue, however I believe I understand why you experienced the phenomenon that you did. Because temp_attribute
was broken in a way that prevented it from ever disabling, I believe the failure of the perk to go back to it's lower state was due to the temp attribute persisting. Since that persistence was fixed in 2581fe8, this issue is resolved