Monsters teleport back to spawn.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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;
|
||||
|
@@ -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);
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user