TeleportToPlayer effect should check if target is in timed hunting zone.

This commit is contained in:
MobiusDevelopment 2020-01-24 18:20:30 +00:00
parent 585bb71af1
commit 7960f9fc58
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ public class TeleportToPlayer extends AbstractEffect
}
final Instance instance = target.getInstanceWorld();
if ((instance != null) && !instance.isPlayerSummonAllowed())
if (((instance != null) && !instance.isPlayerSummonAllowed()) || target.isInTimedHuntingZone())
{
final SystemMessage sm = new SystemMessage(SystemMessageId.C1_IS_IN_AN_AREA_WHICH_BLOCKS_SUMMONING_OR_TELEPORTING);
sm.addString(target.getName());

View File

@ -109,7 +109,7 @@ public class TeleportToPlayer extends AbstractEffect
}
final Instance instance = target.getInstanceWorld();
if ((instance != null) && !instance.isPlayerSummonAllowed())
if (((instance != null) && !instance.isPlayerSummonAllowed()) || target.isInTimedHuntingZone())
{
final SystemMessage sm = new SystemMessage(SystemMessageId.C1_IS_IN_AN_AREA_WHICH_BLOCKS_SUMMONING_OR_TELEPORTING);
sm.addString(target.getName());