Skip to content
Snippets Groups Projects
Commit 7c7aa066 authored by Rumen Nikiforov's avatar Rumen Nikiforov
Browse files

BETA: Fixing rate NPE in L2AttackableAIScript.

	* Reported by: St3eT, disorder35
parent 332bb1ab
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,10 @@ public final class L2AttackableAIScript extends QuestJython ...@@ -178,7 +178,10 @@ public final class L2AttackableAIScript extends QuestJython
if (mob.getLeader() != null) if (mob.getLeader() != null)
{ {
final int respawnTime = Config.MINIONS_RESPAWN_TIME.containsKey(npc.getNpcId()) ? Config.MINIONS_RESPAWN_TIME.get(mob.getNpcId()) * 1000 : -1; final int respawnTime = Config.MINIONS_RESPAWN_TIME.containsKey(npc.getNpcId()) ? Config.MINIONS_RESPAWN_TIME.get(mob.getNpcId()) * 1000 : -1;
mob.getLeader().getMinionList().onMinionDie(mob, respawnTime); if (mob.hasMinions())
{
mob.getLeader().getMinionList().onMinionDie(mob, respawnTime);
}
} }
if (mob.hasMinions()) if (mob.hasMinions())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment