/**
* Method spawnHellbound.
*/
void spawnHellbound()
{
SimpleSpawner spawnDat;
NpcTemplate template;
for (HellboundSpawn hbsi : _list)
{
if (ArrayUtils.contains(hbsi.getStages(), getHellboundLevel()))
{
try
{
template = NpcHolder.getInstance().getTemplate(hbsi.getNpcId());
for (int i = 0; i < hbsi.getAmount(); i++)
{
spawnDat = new SimpleSpawner(template);
spawnDat.setAmount(1);
if (hbsi.getLoc() != null)
{
spawnDat.setLoc(hbsi.getLoc());
}
if (hbsi.getSpawnTerritory() != null)
{
spawnDat.setTerritory(hbsi.getSpawnTerritory());
}
spawnDat.setReflection(ReflectionManager.DEFAULT);
spawnDat.setRespawnDelay(hbsi.getRespawn(), hbsi.getRespawnRnd());
spawnDat.setRespawnTime(0);
spawnDat.doSpawn(true);
spawnDat.getLastSpawn().addListener(_deathListener);
spawnDat.startRespawn();
_spawnList.add(spawnDat);
}
}
catch (Exception e)
{