Nightmare Kamaloka.

Contributed by NviX.
This commit is contained in:
MobiusDev
2016-04-15 08:33:21 +00:00
parent b3cb70feb4
commit 9f649e00f2
27 changed files with 968 additions and 224 deletions

View File

@@ -16,6 +16,7 @@
*/
package com.l2jmobius.gameserver.util;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.logging.Logger;
@@ -44,6 +45,15 @@ public class MinionList
/** List containing the cached deleted minions for reuse */
protected List<L2MonsterInstance> _reusedMinionReferences = null;
private final static List<Integer> KEEP_MINION_AFTER_DEATH_BOSS_IDS = new ArrayList<>();
static
{
KEEP_MINION_AFTER_DEATH_BOSS_IDS.add(26094);
KEEP_MINION_AFTER_DEATH_BOSS_IDS.add(26096);
KEEP_MINION_AFTER_DEATH_BOSS_IDS.add(26099);
KEEP_MINION_AFTER_DEATH_BOSS_IDS.add(26102);
}
public MinionList(L2MonsterInstance pMaster)
{
if (pMaster == null)
@@ -169,7 +179,7 @@ public class MinionList
*/
public void onMasterDie(boolean force)
{
if (_master.isRaid() || force)
if ((_master.isRaid() && !KEEP_MINION_AFTER_DEATH_BOSS_IDS.contains(_master.getId())) || force)
{
deleteSpawnedMinions();
}