Access zone character list only by getter method.
This commit is contained in:
@@ -119,7 +119,7 @@ public class Antharas extends Quest
|
||||
|
||||
protected static long _LastAction = 0;
|
||||
|
||||
protected static BossZone _Zone;
|
||||
protected static BossZone _zone;
|
||||
|
||||
// Boss: Antharas
|
||||
public Antharas()
|
||||
@@ -160,7 +160,7 @@ public class Antharas extends Quest
|
||||
// Setting spawn data of monsters.
|
||||
try
|
||||
{
|
||||
_Zone = GrandBossManager.getInstance().getZone(179700, 113800, -7709);
|
||||
_zone = GrandBossManager.getInstance().getZone(179700, 113800, -7709);
|
||||
NpcTemplate template1;
|
||||
Spawn tempSpawn;
|
||||
|
||||
@@ -417,9 +417,9 @@ public class Antharas extends Quest
|
||||
AntharasSpawn(int taskId)
|
||||
{
|
||||
_taskId = taskId;
|
||||
if (_Zone.getCharactersInside() != null)
|
||||
if (_zone.getCharactersInside() != null)
|
||||
{
|
||||
_players = _Zone.getCharactersInside().values();
|
||||
_players = _zone.getCharactersInside();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -565,9 +565,9 @@ public class Antharas extends Quest
|
||||
|
||||
protected void broadcastPacket(GameServerPacket mov)
|
||||
{
|
||||
if (_Zone != null)
|
||||
if (_zone != null)
|
||||
{
|
||||
for (Creature creatures : _Zone.getCharactersInside().values())
|
||||
for (Creature creatures : _zone.getCharactersInside())
|
||||
{
|
||||
if (creatures instanceof PlayerInstance)
|
||||
{
|
||||
@@ -760,7 +760,7 @@ public class Antharas extends Quest
|
||||
public void setUnspawn()
|
||||
{
|
||||
// Eliminate players.
|
||||
_Zone.oustAllPlayers();
|
||||
_zone.oustAllPlayers();
|
||||
|
||||
// Not executed tasks is canceled.
|
||||
if (_cubeSpawnTask != null)
|
||||
|
@@ -225,7 +225,7 @@ public class Baium extends Quest
|
||||
// baium.setImobilised(false);
|
||||
// for (NpcInstance minion : _Minions)
|
||||
// minion.setShowSummonAnimation(false);
|
||||
baium.getAttackByList().addAll(_zone.getCharactersInside().values());
|
||||
baium.getAttackByList().addAll(_zone.getCharactersInside());
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -239,7 +239,7 @@ public class Baium extends Quest
|
||||
final MonsterInstance angel = (MonsterInstance) addSpawn(ARCHANGEL, element[0], element[1], element[2], element[3], false, 0);
|
||||
angel.setInvul(true);
|
||||
_minions.add(angel);
|
||||
angel.getAttackByList().addAll(_zone.getCharactersInside().values());
|
||||
angel.getAttackByList().addAll(_zone.getCharactersInside());
|
||||
angel.isAggressive();
|
||||
}
|
||||
}
|
||||
|
@@ -649,7 +649,7 @@ public class Frintezza extends Quest
|
||||
_zone.broadcastPacket(new SocialAction(_demon1.getObjectId(), 1));
|
||||
_zone.broadcastPacket(new SocialAction(_demon4.getObjectId(), 1));
|
||||
|
||||
for (Creature pc : _zone.getCharactersInside().values())
|
||||
for (Creature pc : _zone.getCharactersInside())
|
||||
{
|
||||
if (pc instanceof PlayerInstance)
|
||||
{
|
||||
@@ -667,7 +667,7 @@ public class Frintezza extends Quest
|
||||
}
|
||||
else if (event.equals("camera_9c"))
|
||||
{
|
||||
for (Creature pc : _zone.getCharactersInside().values())
|
||||
for (Creature pc : _zone.getCharactersInside())
|
||||
{
|
||||
if (pc instanceof PlayerInstance)
|
||||
{
|
||||
@@ -830,7 +830,7 @@ public class Frintezza extends Quest
|
||||
}
|
||||
else if (event.equals("stop_pc"))
|
||||
{
|
||||
for (Creature creature : _zone.getCharactersInside().values())
|
||||
for (Creature creature : _zone.getCharactersInside())
|
||||
{
|
||||
creature.abortAttack();
|
||||
creature.abortCast();
|
||||
@@ -855,7 +855,7 @@ public class Frintezza extends Quest
|
||||
}
|
||||
else if (event.equals("start_pc"))
|
||||
{
|
||||
for (Creature creature : _zone.getCharactersInside().values())
|
||||
for (Creature creature : _zone.getCharactersInside())
|
||||
{
|
||||
if (creature != _frintezza)
|
||||
{
|
||||
@@ -1169,7 +1169,7 @@ public class Frintezza extends Quest
|
||||
}
|
||||
else if (_onSong == 4)
|
||||
{
|
||||
for (Creature creature : _zone.getCharactersInside().values())
|
||||
for (Creature creature : _zone.getCharactersInside())
|
||||
{
|
||||
if ((creature instanceof PlayerInstance) && (Rnd.get(100) < 80))
|
||||
{
|
||||
@@ -1180,7 +1180,7 @@ public class Frintezza extends Quest
|
||||
}
|
||||
else if (_onSong == 5)
|
||||
{
|
||||
for (Creature creature : _zone.getCharactersInside().values())
|
||||
for (Creature creature : _zone.getCharactersInside())
|
||||
{
|
||||
if ((creature instanceof PlayerInstance) && (Rnd.get(100) < 70))
|
||||
{
|
||||
@@ -1201,7 +1201,7 @@ public class Frintezza extends Quest
|
||||
}
|
||||
else if (event.equals("stop_effect"))
|
||||
{
|
||||
for (Creature creature : _zone.getCharactersInside().values())
|
||||
for (Creature creature : _zone.getCharactersInside())
|
||||
{
|
||||
if (creature instanceof PlayerInstance)
|
||||
{
|
||||
@@ -1336,7 +1336,7 @@ public class Frintezza extends Quest
|
||||
}
|
||||
else
|
||||
{
|
||||
for (Creature creature : _zone.getCharactersInside().values())
|
||||
for (Creature creature : _zone.getCharactersInside())
|
||||
{
|
||||
if ((creature instanceof PlayerInstance) && (creature.getFirstEffect(5016) != null))
|
||||
{
|
||||
|
Reference in New Issue
Block a user