forked from MagicBane/Server
better DS application
This commit is contained in:
@@ -4804,17 +4804,11 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
|
|
||||||
this.safeZone = this.isInSafeZone();
|
this.safeZone = this.isInSafeZone();
|
||||||
|
|
||||||
if(this.isBoxed == false){
|
|
||||||
this. isBoxed = checkIfBoxed(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(this.isBoxed && this.containsEffect(1672601862) == false) {//Deathshroud
|
|
||||||
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
|
|
||||||
}
|
|
||||||
//if(this.isBoxed && this.containsEffect(429611355) == false) {//pathfinding
|
//if(this.isBoxed && this.containsEffect(429611355) == false) {//pathfinding
|
||||||
// PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 429611355, 40, false);
|
// PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 429611355, 40, false);
|
||||||
//}
|
//}
|
||||||
if(this.isEnteredWorld() && this.isActive() && this.getLevel() < 10){
|
if(this.isEnteredWorld() && this.isActive()){
|
||||||
|
if( this.getLevel() < 10) {
|
||||||
this.setLevel((short) 10);
|
this.setLevel((short) 10);
|
||||||
boolean hasConc = false;
|
boolean hasConc = false;
|
||||||
for (Item i : this.getCharItemManager().getInventory()) {
|
for (Item i : this.getCharItemManager().getInventory()) {
|
||||||
@@ -4826,6 +4820,14 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
ItemFactory.fillInventory(this, 980066, 1);
|
ItemFactory.fillInventory(this, 980066, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(this.isBoxed == false){
|
||||||
|
this. isBoxed = checkIfBoxed(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(this.isBoxed && this.containsEffect(1672601862) == false) {//Deathshroud
|
||||||
|
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Logger.error(e);
|
Logger.error(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user