Separated isSkillDisabled from isSkillDisabledByReuse.
This commit is contained in:
		@@ -277,7 +277,7 @@ public final class PrimevalIsle extends AbstractNpcAI
 | 
			
		||||
				{
 | 
			
		||||
					if (getRandom(100) <= (probPhysicalSpecial1 * npc.getVariables().getInt("SKILL_MULTIPLER")))
 | 
			
		||||
					{
 | 
			
		||||
						if (!npc.isSkillDisabled(physicalSpecial1.getSkillId()))
 | 
			
		||||
						if (!npc.isSkillDisabled(physicalSpecial1.getSkill()))
 | 
			
		||||
						{
 | 
			
		||||
							npc.setTarget(creature);
 | 
			
		||||
							npc.doCast(physicalSpecial1.getSkill());
 | 
			
		||||
@@ -420,7 +420,7 @@ public final class PrimevalIsle extends AbstractNpcAI
 | 
			
		||||
				final L2Attackable mob = (L2Attackable) npc;
 | 
			
		||||
				target = mob.getMostHated();
 | 
			
		||||
				mob.clearAggroList();
 | 
			
		||||
				if (!npc.isSkillDisabled(selfRangeBuff1.getSkillId()))
 | 
			
		||||
				if (!npc.isSkillDisabled(selfRangeBuff1.getSkill()))
 | 
			
		||||
				{
 | 
			
		||||
					npc.getVariables().set("SELFBUFF_USED", 1);
 | 
			
		||||
					npc.doCast(selfRangeBuff1.getSkill());
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user