Dropped isSkillDisabledByReuse method.
This commit is contained in:
@@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isSkillDisabledByReuse(skill.getReuseHashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Verifies if the skill is under reuse.
|
|
||||||
* @param hashCode the skill hash code
|
|
||||||
* @return {@code true} if the skill is disabled, {@code false} otherwise
|
|
||||||
*/
|
|
||||||
public boolean isSkillDisabledByReuse(long hashCode)
|
|
||||||
{
|
|
||||||
if (_disabledSkills == null)
|
if (_disabledSkills == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final long hashCode = skill.getReuseHashCode();
|
||||||
final Long stamp = _disabledSkills.get(hashCode);
|
final Long stamp = _disabledSkills.get(hashCode);
|
||||||
if (stamp == null)
|
if (stamp == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stamp < System.currentTimeMillis())
|
if (stamp < System.currentTimeMillis())
|
||||||
{
|
{
|
||||||
_disabledSkills.remove(hashCode);
|
_disabledSkills.remove(hashCode);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isSkillDisabledByReuse(skill.getReuseHashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Verifies if the skill is under reuse.
|
|
||||||
* @param hashCode the skill hash code
|
|
||||||
* @return {@code true} if the skill is disabled, {@code false} otherwise
|
|
||||||
*/
|
|
||||||
public boolean isSkillDisabledByReuse(long hashCode)
|
|
||||||
{
|
|
||||||
if (_disabledSkills == null)
|
if (_disabledSkills == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final long hashCode = skill.getReuseHashCode();
|
||||||
final Long stamp = _disabledSkills.get(hashCode);
|
final Long stamp = _disabledSkills.get(hashCode);
|
||||||
if (stamp == null)
|
if (stamp == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stamp < System.currentTimeMillis())
|
if (stamp < System.currentTimeMillis())
|
||||||
{
|
{
|
||||||
_disabledSkills.remove(hashCode);
|
_disabledSkills.remove(hashCode);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isSkillDisabledByReuse(skill.getReuseHashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Verifies if the skill is under reuse.
|
|
||||||
* @param hashCode the skill hash code
|
|
||||||
* @return {@code true} if the skill is disabled, {@code false} otherwise
|
|
||||||
*/
|
|
||||||
public boolean isSkillDisabledByReuse(long hashCode)
|
|
||||||
{
|
|
||||||
if (_disabledSkills == null)
|
if (_disabledSkills == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final long hashCode = skill.getReuseHashCode();
|
||||||
final Long stamp = _disabledSkills.get(hashCode);
|
final Long stamp = _disabledSkills.get(hashCode);
|
||||||
if (stamp == null)
|
if (stamp == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stamp < System.currentTimeMillis())
|
if (stamp < System.currentTimeMillis())
|
||||||
{
|
{
|
||||||
_disabledSkills.remove(hashCode);
|
_disabledSkills.remove(hashCode);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isSkillDisabledByReuse(skill.getReuseHashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Verifies if the skill is under reuse.
|
|
||||||
* @param hashCode the skill hash code
|
|
||||||
* @return {@code true} if the skill is disabled, {@code false} otherwise
|
|
||||||
*/
|
|
||||||
public boolean isSkillDisabledByReuse(long hashCode)
|
|
||||||
{
|
|
||||||
if (_disabledSkills == null)
|
if (_disabledSkills == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final long hashCode = skill.getReuseHashCode();
|
||||||
final Long stamp = _disabledSkills.get(hashCode);
|
final Long stamp = _disabledSkills.get(hashCode);
|
||||||
if (stamp == null)
|
if (stamp == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stamp < System.currentTimeMillis())
|
if (stamp < System.currentTimeMillis())
|
||||||
{
|
{
|
||||||
_disabledSkills.remove(hashCode);
|
_disabledSkills.remove(hashCode);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2342,21 +2342,12 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isSkillDisabledByReuse(skill.getReuseHashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Verifies if the skill is disabled.
|
|
||||||
* @param hashCode the skill hash code
|
|
||||||
* @return {@code true} if the skill is disabled, {@code false} otherwise
|
|
||||||
*/
|
|
||||||
public boolean isSkillDisabledByReuse(int hashCode)
|
|
||||||
{
|
|
||||||
if (_disabledSkills == null)
|
if (_disabledSkills == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final int hashCode = skill.getReuseHashCode();
|
||||||
final Long stamp = _disabledSkills.get(hashCode);
|
final Long stamp = _disabledSkills.get(hashCode);
|
||||||
if (stamp == null)
|
if (stamp == null)
|
||||||
{
|
{
|
||||||
@@ -2368,6 +2359,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
_disabledSkills.remove(hashCode);
|
_disabledSkills.remove(hashCode);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isSkillDisabledByReuse(skill.getReuseHashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Verifies if the skill is under reuse.
|
|
||||||
* @param hashCode the skill hash code
|
|
||||||
* @return {@code true} if the skill is disabled, {@code false} otherwise
|
|
||||||
*/
|
|
||||||
public boolean isSkillDisabledByReuse(long hashCode)
|
|
||||||
{
|
|
||||||
if (_disabledSkills == null)
|
if (_disabledSkills == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final long hashCode = skill.getReuseHashCode();
|
||||||
final Long stamp = _disabledSkills.get(hashCode);
|
final Long stamp = _disabledSkills.get(hashCode);
|
||||||
if (stamp == null)
|
if (stamp == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stamp < System.currentTimeMillis())
|
if (stamp < System.currentTimeMillis())
|
||||||
{
|
{
|
||||||
_disabledSkills.remove(hashCode);
|
_disabledSkills.remove(hashCode);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isSkillDisabledByReuse(skill.getReuseHashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Verifies if the skill is under reuse.
|
|
||||||
* @param hashCode the skill hash code
|
|
||||||
* @return {@code true} if the skill is disabled, {@code false} otherwise
|
|
||||||
*/
|
|
||||||
public boolean isSkillDisabledByReuse(long hashCode)
|
|
||||||
{
|
|
||||||
if (_disabledSkills == null)
|
if (_disabledSkills == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final long hashCode = skill.getReuseHashCode();
|
||||||
final Long stamp = _disabledSkills.get(hashCode);
|
final Long stamp = _disabledSkills.get(hashCode);
|
||||||
if (stamp == null)
|
if (stamp == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stamp < System.currentTimeMillis())
|
if (stamp < System.currentTimeMillis())
|
||||||
{
|
{
|
||||||
_disabledSkills.remove(hashCode);
|
_disabledSkills.remove(hashCode);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isSkillDisabledByReuse(skill.getReuseHashCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Verifies if the skill is under reuse.
|
|
||||||
* @param hashCode the skill hash code
|
|
||||||
* @return {@code true} if the skill is disabled, {@code false} otherwise
|
|
||||||
*/
|
|
||||||
public boolean isSkillDisabledByReuse(long hashCode)
|
|
||||||
{
|
|
||||||
if (_disabledSkills == null)
|
if (_disabledSkills == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final long hashCode = skill.getReuseHashCode();
|
||||||
final Long stamp = _disabledSkills.get(hashCode);
|
final Long stamp = _disabledSkills.get(hashCode);
|
||||||
if (stamp == null)
|
if (stamp == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stamp < System.currentTimeMillis())
|
if (stamp < System.currentTimeMillis())
|
||||||
{
|
{
|
||||||
_disabledSkills.remove(hashCode);
|
_disabledSkills.remove(hashCode);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user