No need to assign pet when skill is not found.
This commit is contained in:
parent
a602a73062
commit
1970695d10
@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -192,10 +192,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -262,10 +262,10 @@ public class AutoUseTaskManager implements Runnable
|
|||||||
{
|
{
|
||||||
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
SUMMON_SEARCH: for (Summon summon : player.getServitors().values())
|
||||||
{
|
{
|
||||||
pet = summon;
|
|
||||||
skill = summon.getKnownSkill(skillId.intValue());
|
skill = summon.getKnownSkill(skillId.intValue());
|
||||||
if (skill != null)
|
if (skill != null)
|
||||||
{
|
{
|
||||||
|
pet = summon;
|
||||||
break SUMMON_SEARCH;
|
break SUMMON_SEARCH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user