Kartia onEnterZone should only trigger in instance.

This commit is contained in:
MobiusDevelopment 2020-02-25 19:29:02 +00:00
parent 81d29e0644
commit 740acfdbd8
8 changed files with 8 additions and 8 deletions

View File

@ -465,7 +465,7 @@ public class KartiasLabyrinth extends AbstractInstance
public String onEnterZone(Creature creature, ZoneType zone)
{
final Instance instance = creature.getInstanceWorld();
if ((instance != null) && creature.isPlayer())
if ((instance != null) && creature.isPlayer() && (instance.getTemplateId() >= TEMPLATE_ID_SOLO_85) && (instance.getTemplateId() <= TEMPLATE_ID_GROUP_95))
{
switch (zone.getId())
{

View File

@ -465,7 +465,7 @@ public class KartiasLabyrinth extends AbstractInstance
public String onEnterZone(Creature creature, ZoneType zone)
{
final Instance instance = creature.getInstanceWorld();
if ((instance != null) && creature.isPlayer())
if ((instance != null) && creature.isPlayer() && (instance.getTemplateId() >= TEMPLATE_ID_SOLO_85) && (instance.getTemplateId() <= TEMPLATE_ID_GROUP_95))
{
switch (zone.getId())
{

View File

@ -465,7 +465,7 @@ public class KartiasLabyrinth extends AbstractInstance
public String onEnterZone(Creature creature, ZoneType zone)
{
final Instance instance = creature.getInstanceWorld();
if ((instance != null) && creature.isPlayer())
if ((instance != null) && creature.isPlayer() && (instance.getTemplateId() >= TEMPLATE_ID_SOLO_85) && (instance.getTemplateId() <= TEMPLATE_ID_GROUP_95))
{
switch (zone.getId())
{

View File

@ -465,7 +465,7 @@ public class KartiasLabyrinth extends AbstractInstance
public String onEnterZone(Creature creature, ZoneType zone)
{
final Instance instance = creature.getInstanceWorld();
if ((instance != null) && creature.isPlayer())
if ((instance != null) && creature.isPlayer() && (instance.getTemplateId() >= TEMPLATE_ID_SOLO_85) && (instance.getTemplateId() <= TEMPLATE_ID_GROUP_95))
{
switch (zone.getId())
{

View File

@ -465,7 +465,7 @@ public class KartiasLabyrinth extends AbstractInstance
public String onEnterZone(Creature creature, ZoneType zone)
{
final Instance instance = creature.getInstanceWorld();
if ((instance != null) && creature.isPlayer())
if ((instance != null) && creature.isPlayer() && (instance.getTemplateId() >= TEMPLATE_ID_SOLO_85) && (instance.getTemplateId() <= TEMPLATE_ID_GROUP_95))
{
switch (zone.getId())
{

View File

@ -465,7 +465,7 @@ public class KartiasLabyrinth extends AbstractInstance
public String onEnterZone(Creature creature, ZoneType zone)
{
final Instance instance = creature.getInstanceWorld();
if ((instance != null) && creature.isPlayer())
if ((instance != null) && creature.isPlayer() && (instance.getTemplateId() >= TEMPLATE_ID_SOLO_85) && (instance.getTemplateId() <= TEMPLATE_ID_GROUP_95))
{
switch (zone.getId())
{

View File

@ -465,7 +465,7 @@ public class KartiasLabyrinth extends AbstractInstance
public String onEnterZone(Creature creature, ZoneType zone)
{
final Instance instance = creature.getInstanceWorld();
if ((instance != null) && creature.isPlayer())
if ((instance != null) && creature.isPlayer() && (instance.getTemplateId() >= TEMPLATE_ID_SOLO_85) && (instance.getTemplateId() <= TEMPLATE_ID_GROUP_95))
{
switch (zone.getId())
{

View File

@ -465,7 +465,7 @@ public class KartiasLabyrinth extends AbstractInstance
public String onEnterZone(Creature creature, ZoneType zone)
{
final Instance instance = creature.getInstanceWorld();
if ((instance != null) && creature.isPlayer())
if ((instance != null) && creature.isPlayer() && (instance.getTemplateId() >= TEMPLATE_ID_SOLO_85) && (instance.getTemplateId() <= TEMPLATE_ID_GROUP_95))
{
switch (zone.getId())
{