Fixed triggered buffs stacking.
Contributed by Sahar.
This commit is contained in:
parent
2eca7d1f99
commit
88a3b5b381
@ -1217,6 +1217,8 @@ public class EffectList
|
|||||||
}
|
}
|
||||||
// Verify stacked skills.
|
// Verify stacked skills.
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
synchronized (this)
|
||||||
{
|
{
|
||||||
if (_stackedEffects.containsKey(skill.getAbnormalType()))
|
if (_stackedEffects.containsKey(skill.getAbnormalType()))
|
||||||
{
|
{
|
||||||
@ -1262,6 +1264,7 @@ public class EffectList
|
|||||||
}
|
}
|
||||||
_stackedEffects.put(skill.getAbnormalType(), info);
|
_stackedEffects.put(skill.getAbnormalType(), info);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Select the map that holds the effects related to this skill.
|
// Select the map that holds the effects related to this skill.
|
||||||
final Queue<BuffInfo> effects = getEffectList(skill);
|
final Queue<BuffInfo> effects = getEffectList(skill);
|
||||||
|
@ -1218,6 +1218,8 @@ public class EffectList
|
|||||||
}
|
}
|
||||||
// Verify stacked skills.
|
// Verify stacked skills.
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
synchronized (this)
|
||||||
{
|
{
|
||||||
if (_stackedEffects.containsKey(skill.getAbnormalType()))
|
if (_stackedEffects.containsKey(skill.getAbnormalType()))
|
||||||
{
|
{
|
||||||
@ -1263,6 +1265,7 @@ public class EffectList
|
|||||||
}
|
}
|
||||||
_stackedEffects.put(skill.getAbnormalType(), info);
|
_stackedEffects.put(skill.getAbnormalType(), info);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Select the map that holds the effects related to this skill.
|
// Select the map that holds the effects related to this skill.
|
||||||
final Queue<BuffInfo> effects = getEffectList(skill);
|
final Queue<BuffInfo> effects = getEffectList(skill);
|
||||||
|
Loading…
Reference in New Issue
Block a user