From 13e85b6a3e8e59f72afe6b32e37327bde072a999 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 24 Feb 2024 22:45:32 -0600 Subject: [PATCH] zone override --- src/engine/objects/PlayerCharacter.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 35dd8c5a..5e98a329 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -53,6 +53,8 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock; +import static engine.InterestManagement.RealmMap.getRealmAtLocation; + public class PlayerCharacter extends AbstractCharacter { @@ -4811,6 +4813,15 @@ public class PlayerCharacter extends AbstractCharacter { updateBlessingMessage(); this.safeZone = this.isInSafeZone(); + boolean forbiddenRealm = false; + if(Realm.overridePlacement(getRealmAtLocation(this.getLoc()).getRealmName())) + forbiddenRealm = true; + if(forbiddenRealm && this.containsEffect(1672601862) == false) {//Deathshroud + PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false); + } + //if(this.isBoxed && this.containsEffect(429611355) == false) {//pathfinding + // PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 429611355, 40, false); + //} } catch (Exception e) { Logger.error(e);