No need to assign pet when skill is not found.

This commit is contained in:
MobiusDevelopment 2022-03-25 00:12:58 +00:00
parent a602a73062
commit 1970695d10
10 changed files with 20 additions and 20 deletions

View File

@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}

View File

@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}

View File

@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}

View File

@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}

View File

@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}

View File

@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}

View File

@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}

View File

@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}

View File

@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}

View File

@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
{
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
{
pet = summon;
skill = summon.getKnownSkill(skillId.intValue());
if (skill != null)
{
pet = summon;
break SUMMON_SEARCH;
}
}