Parcourir la source

Fixed trait issue with passive skills.

Reported by: Sahar Atias, FinalDestination
Adry85 il y a 7 ans
Parent
commit
5bc7189918

+ 5 - 0
src/main/java/com/l2jserver/gameserver/model/actor/L2Character.java

@@ -5236,6 +5236,11 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
 			if (oldSkill != null)
 			{
 				removeStatsOwner(oldSkill);
+				
+				if (oldSkill.isPassive())
+				{
+					stopSkillEffects(false, oldSkill.getId());
+				}
 			}
 			// Add Func objects of newSkill to the calculator set of the L2Character
 			addStatFuncs(newSkill.getStatFuncs(null, this));