Separated isSkillDisabled from isSkillDisabledByReuse.

This commit is contained in:
MobiusDev
2018-06-07 20:36:36 +00:00
parent f0896c5346
commit 44d2d37c69
2 changed files with 5 additions and 10 deletions

View File

@@ -2332,7 +2332,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
return false;
}
if (_allSkillsDisabled)
if (isAllSkillsDisabled())
{
return true;
}
@@ -2342,7 +2342,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
return true;
}
return isSkillDisabled(skill.getReuseHashCode());
return isSkillDisabledByReuse(skill.getReuseHashCode());
}
/**
@@ -2350,13 +2350,8 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
* @param hashCode the skill hash code
* @return {@code true} if the skill is disabled, {@code false} otherwise
*/
public boolean isSkillDisabled(int hashCode)
public boolean isSkillDisabledByReuse(int hashCode)
{
if (isAllSkillsDisabled())
{
return true;
}
if (_disabledSkills == null)
{
return false;