Skip to content
Snippets Groups Projects
Commit 2b7773db authored by Nos's avatar Nos
Browse files

BETA: DP-Part for [L6533].

parent 08da63ca
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@ package ai.individual;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import javolution.util.FastSet;
import ai.npc.AbstractNpcAI;
......@@ -31,7 +32,6 @@ import com.l2jserver.gameserver.model.actor.L2Attackable;
import com.l2jserver.gameserver.model.actor.L2Character;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.util.L2FastMap;
/**
* Dark Water Dragon's AI.
......@@ -46,7 +46,7 @@ public final class DarkWaterDragon extends AbstractNpcAI
private static final int DETRACTOR2 = 22271;
private static Set<Integer> SECOND_SPAWN = new FastSet<>(); // Used to track if second Shades were already spawned
private static Set<Integer> MY_TRACKING_SET = new FastSet<>(); // Used to track instances of npcs
private static Map<Integer, L2PcInstance> ID_MAP = new L2FastMap<>(true); // Used to track instances of npcs
private static Map<Integer, L2PcInstance> ID_MAP = new ConcurrentHashMap<>(); // Used to track instances of npcs
private DarkWaterDragon()
{
......
......@@ -20,6 +20,7 @@ package ai.individual;
import java.util.Arrays;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import ai.npc.AbstractNpcAI;
......@@ -28,7 +29,6 @@ import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.util.MinionList;
import com.l2jserver.util.L2FastMap;
/**
* Manages minion's spawn, idle despawn and Teleportation Cube spawn.
......@@ -59,7 +59,7 @@ public final class Epidos extends AbstractNpcAI
11
};
private final Map<Integer, Double> _lastHp = new L2FastMap<>(true);
private final Map<Integer, Double> _lastHp = new ConcurrentHashMap<>();
private Epidos()
{
......
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