TeleportToPlayer effect should check if target is in timed hunting zone.
This commit is contained in:
parent
585bb71af1
commit
7960f9fc58
@ -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());
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user