Dropped isSkillDisabledByReuse method.
This commit is contained in:
parent
44d2d37c69
commit
e60a34f37b
@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
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)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
final long hashCode = skill.getReuseHashCode();
|
||||
final Long stamp = _disabledSkills.get(hashCode);
|
||||
if (stamp == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (stamp < System.currentTimeMillis())
|
||||
{
|
||||
_disabledSkills.remove(hashCode);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
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)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
final long hashCode = skill.getReuseHashCode();
|
||||
final Long stamp = _disabledSkills.get(hashCode);
|
||||
if (stamp == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (stamp < System.currentTimeMillis())
|
||||
{
|
||||
_disabledSkills.remove(hashCode);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
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)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
final long hashCode = skill.getReuseHashCode();
|
||||
final Long stamp = _disabledSkills.get(hashCode);
|
||||
if (stamp == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (stamp < System.currentTimeMillis())
|
||||
{
|
||||
_disabledSkills.remove(hashCode);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
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)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
final long hashCode = skill.getReuseHashCode();
|
||||
final Long stamp = _disabledSkills.get(hashCode);
|
||||
if (stamp == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (stamp < System.currentTimeMillis())
|
||||
{
|
||||
_disabledSkills.remove(hashCode);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -2342,21 +2342,12 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
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)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
final int hashCode = skill.getReuseHashCode();
|
||||
final Long stamp = _disabledSkills.get(hashCode);
|
||||
if (stamp == null)
|
||||
{
|
||||
@ -2368,6 +2359,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
_disabledSkills.remove(hashCode);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
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)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
final long hashCode = skill.getReuseHashCode();
|
||||
final Long stamp = _disabledSkills.get(hashCode);
|
||||
if (stamp == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (stamp < System.currentTimeMillis())
|
||||
{
|
||||
_disabledSkills.remove(hashCode);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
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)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
final long hashCode = skill.getReuseHashCode();
|
||||
final Long stamp = _disabledSkills.get(hashCode);
|
||||
if (stamp == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (stamp < System.currentTimeMillis())
|
||||
{
|
||||
_disabledSkills.remove(hashCode);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -1558,32 +1558,23 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
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)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
final long hashCode = skill.getReuseHashCode();
|
||||
final Long stamp = _disabledSkills.get(hashCode);
|
||||
if (stamp == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (stamp < System.currentTimeMillis())
|
||||
{
|
||||
_disabledSkills.remove(hashCode);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user