zone override

This commit is contained in:
2024-02-24 22:45:32 -06:00
parent f992caba3c
commit 13e85b6a3e
+11
View File
@@ -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);