浏览代码

BETA: Minor fix for skills without abnormal type and multiple effects.

Reported by: FinalDestination
Zoey76 12 年之前
父节点
当前提交
e973c710b8
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      L2J_Server_BETA/java/com/l2jserver/gameserver/model/CharEffectList.java

+ 6 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/CharEffectList.java

@@ -925,11 +925,16 @@ public final class CharEffectList
 							// Add Funcs of this effect to the Calculator set of the L2Character
 							_owner.addStatFuncs(effect.getStatFuncs());
 						}
-						return;
 					}
 				}
 			}
 			
+			// Effects without abnormal shouldn't stack.
+			if (skill.getAbnormalType().isNone())
+			{
+				return;
+			}
+			
 			if (_stackedEffects == null)
 			{
 				_stackedEffects = new ConcurrentHashMap<>();