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

@@ -238,7 +238,7 @@ public class Skill implements IIdentifiable
_abnormalType = set.getEnum("abnormalType", AbnormalType.class, AbnormalType.NONE);
_subordinationAbnormalType = set.getEnum("subordinationAbnormalType", AbnormalType.class, AbnormalType.NONE);
int abnormalTime = set.getInt("abnormalTime", 0);
if (Config.ENABLE_MODIFY_SKILL_DURATION && Config.SKILL_DURATION_LIST.containsKey(_id))
if (Config.ENABLE_MODIFY_SKILL_DURATION && Config.SKILL_DURATION_LIST.containsKey(_id) && (_operateType != SkillOperateType.T))
{
if ((_level < 100) || (_level > 140))
{
@@ -249,7 +249,6 @@ public class Skill implements IIdentifiable
abnormalTime += Config.SKILL_DURATION_LIST.get(_id);
}
}
_abnormalTime = abnormalTime;
_isAbnormalInstant = set.getBoolean("abnormalInstant", false);
parseAbnormalVisualEffect(set.getString("abnormalVisualEffect", null));