Browse Source

zone override

birdbane
FatBoy-DOTC 9 months ago
parent
commit
13e85b6a3e
  1. 11
      src/engine/objects/PlayerCharacter.java

11
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.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock; import java.util.concurrent.locks.ReentrantReadWriteLock;
import static engine.InterestManagement.RealmMap.getRealmAtLocation;
public class PlayerCharacter extends AbstractCharacter { public class PlayerCharacter extends AbstractCharacter {
@ -4811,6 +4813,15 @@ public class PlayerCharacter extends AbstractCharacter {
updateBlessingMessage(); updateBlessingMessage();
this.safeZone = this.isInSafeZone(); 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) { } catch (Exception e) {
Logger.error(e); Logger.error(e);

Loading…
Cancel
Save