Toggles are not supposed to have modified duration.

Contributed by ver.
This commit is contained in:
MobiusDevelopment
2022-01-17 03:32:38 +00:00
parent 87878357f2
commit cd29cc9e6e
25 changed files with 25 additions and 48 deletions

View File

@@ -258,7 +258,7 @@ public abstract class DocumentBase
if (attrs.getNamedItem("time") != null)
{
time = Integer.decode(getValue(attrs.getNamedItem("time").getNodeValue(), template));
if (Config.ENABLE_MODIFY_SKILL_DURATION && Config.SKILL_DURATION_LIST.containsKey(((Skill) template).getId()))
if (Config.ENABLE_MODIFY_SKILL_DURATION && Config.SKILL_DURATION_LIST.containsKey(((Skill) template).getId()) && !((Skill) template).isToggle())
{
if (((Skill) template).getLevel() < 100)
{