Browse Source

better DS application

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
6cf2705013
  1. 24
      src/engine/objects/PlayerCharacter.java

24
src/engine/objects/PlayerCharacter.java

@ -4804,28 +4804,30 @@ public class PlayerCharacter extends AbstractCharacter { @@ -4804,28 +4804,30 @@ public class PlayerCharacter extends AbstractCharacter {
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
// 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);
boolean hasConc = false;
for(Item i : this.getCharItemManager().getInventory()){
if(i.getItemBaseID() == 980066){
for (Item i : this.getCharItemManager().getInventory()) {
if (i.getItemBaseID() == 980066) {
hasConc = true;
}
}
if(!hasConc) {
if (!hasConc) {
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) {
Logger.error(e);

Loading…
Cancel
Save