From cecb937145c22af488f8603580f5ce6a3a7b2a03 Mon Sep 17 00:00:00 2001 From: Player Name Date: Wed, 13 Dec 2023 12:13:47 +0000 Subject: [PATCH] Players now kicked out of unimplemented werewolf agility course --- .../content/region/morytania/handlers/MorytaniaArea.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Server/src/main/content/region/morytania/handlers/MorytaniaArea.kt b/Server/src/main/content/region/morytania/handlers/MorytaniaArea.kt index 938c82d8c..19429c4bd 100644 --- a/Server/src/main/content/region/morytania/handlers/MorytaniaArea.kt +++ b/Server/src/main/content/region/morytania/handlers/MorytaniaArea.kt @@ -14,11 +14,17 @@ import core.game.world.GameWorld class MorytaniaArea : MapArea { override fun defineAreaBorders(): Array { - return arrayOf(ZoneBorders(3426, 3191, 3715, 3588)) + return arrayOf( + ZoneBorders(3426, 3191, 3715, 3588), //Morytania overworld + ZoneBorders(3520, 9856, 3583, 9919) //Werewolf agility course + ) } override fun areaEnter(entity: Entity) { - if (entity is Player && entity !is AIPlayer && !isQuestComplete(entity, "Priest in Peril")) { + if (entity is Player && entity !is AIPlayer && ( + !isQuestComplete(entity, "Priest in Peril") || //not allowed to be anywhere in Morytania + defineAreaBorders()[1].insideBorder(entity) //Werewolf agility course is not implemented + )) { kickThemOut(entity) } }