Separated isSkillDisabled from isSkillDisabledByReuse.
This commit is contained in:
parent
f0896c5346
commit
44d2d37c69
@ -277,7 +277,7 @@ public final class PrimevalIsle extends AbstractNpcAI
|
|||||||
{
|
{
|
||||||
if (getRandom(100) <= (probPhysicalSpecial1 * npc.getVariables().getInt("SKILL_MULTIPLER")))
|
if (getRandom(100) <= (probPhysicalSpecial1 * npc.getVariables().getInt("SKILL_MULTIPLER")))
|
||||||
{
|
{
|
||||||
if (!npc.isSkillDisabled(physicalSpecial1.getSkillId()))
|
if (!npc.isSkillDisabled(physicalSpecial1.getSkill()))
|
||||||
{
|
{
|
||||||
npc.setTarget(creature);
|
npc.setTarget(creature);
|
||||||
npc.doCast(physicalSpecial1.getSkill());
|
npc.doCast(physicalSpecial1.getSkill());
|
||||||
@ -420,7 +420,7 @@ public final class PrimevalIsle extends AbstractNpcAI
|
|||||||
final L2Attackable mob = (L2Attackable) npc;
|
final L2Attackable mob = (L2Attackable) npc;
|
||||||
target = mob.getMostHated();
|
target = mob.getMostHated();
|
||||||
mob.clearAggroList();
|
mob.clearAggroList();
|
||||||
if (!npc.isSkillDisabled(selfRangeBuff1.getSkillId()))
|
if (!npc.isSkillDisabled(selfRangeBuff1.getSkill()))
|
||||||
{
|
{
|
||||||
npc.getVariables().set("SELFBUFF_USED", 1);
|
npc.getVariables().set("SELFBUFF_USED", 1);
|
||||||
npc.doCast(selfRangeBuff1.getSkill());
|
npc.doCast(selfRangeBuff1.getSkill());
|
||||||
|
@ -2332,7 +2332,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_allSkillsDisabled)
|
if (isAllSkillsDisabled())
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -2342,7 +2342,7 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
|||||||
return true;
|
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
|
* @param hashCode the skill hash code
|
||||||
* @return {@code true} if the skill is disabled, {@code false} otherwise
|
* @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)
|
if (_disabledSkills == null)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user