Monsters teleport back to spawn.

This commit is contained in:
MobiusDev
2018-04-18 18:16:14 +00:00
parent 19160dfd8f
commit 30bb3a55b5
29 changed files with 90 additions and 114 deletions

View File

@@ -140,7 +140,6 @@ public final class Wastelands extends AbstractNpcAI
{
guard.reduceCurrentHp(1, monster, null); // TODO: Find better way for attack
monster.reduceCurrentHp(1, guard, null);
guard.setCanStopAttackByTime(false);
if ((guard.getId() != COMMANDO) && (guard.getId() != COMMANDO_CAPTAIN))
{
@@ -161,7 +160,6 @@ public final class Wastelands extends AbstractNpcAI
{
decoGuard.reduceCurrentHp(1, monster, null); // TODO: Find better way for attack
monster.reduceCurrentHp(1, decoGuard, null);
decoGuard.setCanStopAttackByTime(false);
decoGuard.setIsInvul(true);
}
}
@@ -303,7 +301,6 @@ public final class Wastelands extends AbstractNpcAI
commander.reduceCurrentHp(1, sakum, null); // TODO: Find better way for attack
sakum.reduceCurrentHp(1, commander, null);
commander.setCanStopAttackByTime(false);
notifyEvent("START_ATTACK", commander, null);
}
@@ -319,7 +316,6 @@ public final class Wastelands extends AbstractNpcAI
commander.reduceCurrentHp(1, sakum, null); // TODO: Find better way for attack
sakum.reduceCurrentHp(1, commander, null);
commander.setCanStopAttackByTime(false);
notifyEvent("START_ATTACK", commander, null);
}

View File

@@ -521,7 +521,6 @@ public class Lindvior extends AbstractNpcAI
}
case LYN_DRACO_ATTACKER_GENERATORS:
{
((L2Attackable) npc).setCanStopAttackByTime(false);
((L2Attackable) npc).setCanReturnToSpawnPoint(false);
startQuestTimer("attack_generator", 10000, npc, null, true);
break;

View File

@@ -228,7 +228,6 @@ public final class ChamberOfProphecies extends AbstractInstance
{
npc.setRunning();
((L2Attackable) npc).setCanReturnToSpawnPoint(false);
((L2Attackable) npc).setCanStopAttackByTime(false);
if (npc.isScriptValue(0) && world.getAliveNpcs(L2MonsterInstance.class).isEmpty())
{
npc.setTarget(player);

View File

@@ -300,7 +300,6 @@ public class NornilsGarden extends AbstractInstance
final Instance world = npc.getInstanceWorld();
if (isInInstance(world) && (CommonUtil.contains(ATTACABLE_MONSTERS, npc.getId())))
{
((L2Attackable) npc).setCanStopAttackByTime(false);
((L2Attackable) npc).setCanReturnToSpawnPoint(false);
startQuestTimer("check_agrro", 1000, npc, null, true);
}