otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.55k stars 1.04k forks source link

[bugfix] default duration on decaying items with no min or maxvalue set #4725

Closed Coldensjo closed 1 month ago

Coldensjo commented 1 month ago

This fixes an issue with items that have no min or max value set. For example. Before: <attribute key="duration" value="300"/> Means duration 1-300 seconds. After <attribute key="duration" value="300"/> Means duration 300-300 seconds. Same as <attribute key="duration" minvalue="300" maxvalue="300"/>

problem was introduced in #4531