Stop effects of replaced passive skills.

This commit is contained in:
MobiusDev 2017-11-30 14:48:46 +00:00
parent b743cef12b
commit cc5398d7bd
5 changed files with 30 additions and 0 deletions

View File

@ -4230,6 +4230,12 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// If an old skill has been replaced, remove all its Func objects
if (oldSkill != null)
{
// Stop all effects of that skill
if (oldSkill.isPassive())
{
getEffectList().stopSkillEffects(true, oldSkill);
}
getStat().recalculateStats(true);
}

View File

@ -4234,6 +4234,12 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// If an old skill has been replaced, remove all its Func objects
if (oldSkill != null)
{
// Stop all effects of that skill
if (oldSkill.isPassive())
{
getEffectList().stopSkillEffects(true, oldSkill);
}
getStat().recalculateStats(true);
}

View File

@ -4234,6 +4234,12 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// If an old skill has been replaced, remove all its Func objects
if (oldSkill != null)
{
// Stop all effects of that skill
if (oldSkill.isPassive())
{
getEffectList().stopSkillEffects(true, oldSkill);
}
getStat().recalculateStats(true);
}

View File

@ -4234,6 +4234,12 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// If an old skill has been replaced, remove all its Func objects
if (oldSkill != null)
{
// Stop all effects of that skill
if (oldSkill.isPassive())
{
getEffectList().stopSkillEffects(true, oldSkill);
}
getStat().recalculateStats(true);
}

View File

@ -4234,6 +4234,12 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
// If an old skill has been replaced, remove all its Func objects
if (oldSkill != null)
{
// Stop all effects of that skill
if (oldSkill.isPassive())
{
getEffectList().stopSkillEffects(true, oldSkill);
}
getStat().recalculateStats(true);
}