Properly restore finished skill stack effects for previous commit.
This commit is contained in:
parent
cf38303ace
commit
e72b2f470b
@ -1434,24 +1434,35 @@ public class EffectList
|
||||
// Skills are only replaced if the incoming buff has greater or equal abnormal level.
|
||||
if ((stackedInfo != null) && (skill.getAbnormalLvl() >= stackedInfo.getSkill().getAbnormalLvl()))
|
||||
{
|
||||
stopSkillEffects(false, skill.getAbnormalType());
|
||||
|
||||
// If it is an herb, set as not in use the lesser buff.
|
||||
// Effect will be present in the effect list.
|
||||
// Effects stats are removed and onActionTime() is not called.
|
||||
// But finish task continues to run, and ticks as well.
|
||||
if (skill.isAbnormalInstant())
|
||||
{
|
||||
if (stackedInfo.getSkill().isAbnormalInstant())
|
||||
{
|
||||
stopSkillEffects(false, skill.getAbnormalType());
|
||||
stackedInfo = _stackedEffects.get(skill.getAbnormalType());
|
||||
}
|
||||
|
||||
if (stackedInfo != null)
|
||||
{
|
||||
stackedInfo.setInUse(false);
|
||||
// Remove stats
|
||||
stackedInfo.removeStats();
|
||||
_hiddenBuffs.incrementAndGet();
|
||||
}
|
||||
}
|
||||
else // Remove buff that will stack with the abnormal type.
|
||||
{
|
||||
if (stackedInfo.getSkill().isAbnormalInstant())
|
||||
{
|
||||
stopSkillEffects(false, skill.getAbnormalType());
|
||||
}
|
||||
stopSkillEffects(false, skill.getAbnormalType());
|
||||
}
|
||||
}
|
||||
else // If the new buff is a lesser buff, then don't add it.
|
||||
{
|
||||
return;
|
||||
|
@ -1435,24 +1435,35 @@ public class EffectList
|
||||
// Skills are only replaced if the incoming buff has greater or equal abnormal level.
|
||||
if ((stackedInfo != null) && (skill.getAbnormalLvl() >= stackedInfo.getSkill().getAbnormalLvl()))
|
||||
{
|
||||
stopSkillEffects(false, skill.getAbnormalType());
|
||||
|
||||
// If it is an herb, set as not in use the lesser buff.
|
||||
// Effect will be present in the effect list.
|
||||
// Effects stats are removed and onActionTime() is not called.
|
||||
// But finish task continues to run, and ticks as well.
|
||||
if (skill.isAbnormalInstant())
|
||||
{
|
||||
if (stackedInfo.getSkill().isAbnormalInstant())
|
||||
{
|
||||
stopSkillEffects(false, skill.getAbnormalType());
|
||||
stackedInfo = _stackedEffects.get(skill.getAbnormalType());
|
||||
}
|
||||
|
||||
if (stackedInfo != null)
|
||||
{
|
||||
stackedInfo.setInUse(false);
|
||||
// Remove stats
|
||||
stackedInfo.removeStats();
|
||||
_hiddenBuffs.incrementAndGet();
|
||||
}
|
||||
}
|
||||
else // Remove buff that will stack with the abnormal type.
|
||||
{
|
||||
if (stackedInfo.getSkill().isAbnormalInstant())
|
||||
{
|
||||
stopSkillEffects(false, skill.getAbnormalType());
|
||||
}
|
||||
stopSkillEffects(false, skill.getAbnormalType());
|
||||
}
|
||||
}
|
||||
else // If the new buff is a lesser buff, then don't add it.
|
||||
{
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user