Fixed triggered buffs stacking.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment 2019-11-22 16:59:54 +00:00
parent 2eca7d1f99
commit 88a3b5b381
2 changed files with 66 additions and 60 deletions

View File

@ -1217,6 +1217,8 @@ public class EffectList
}
// Verify stacked skills.
else
{
synchronized (this)
{
if (_stackedEffects.containsKey(skill.getAbnormalType()))
{
@ -1262,6 +1264,7 @@ public class EffectList
}
_stackedEffects.put(skill.getAbnormalType(), info);
}
}
// Select the map that holds the effects related to this skill.
final Queue<BuffInfo> effects = getEffectList(skill);

View File

@ -1218,6 +1218,8 @@ public class EffectList
}
// Verify stacked skills.
else
{
synchronized (this)
{
if (_stackedEffects.containsKey(skill.getAbnormalType()))
{
@ -1263,6 +1265,7 @@ public class EffectList
}
_stackedEffects.put(skill.getAbnormalType(), info);
}
}
// Select the map that holds the effects related to this skill.
final Queue<BuffInfo> effects = getEffectList(skill);