|
|
@ -4865,7 +4865,7 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
ItemFactory.fillInventory(this, 980066, 1); |
|
|
|
ItemFactory.fillInventory(this, 980066, 1); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(!this.isBoxed) { |
|
|
|
if(!this.isBoxed && System.currentTimeMillis() < this.nextBoxCheck) { |
|
|
|
checkIfBoxed(this); |
|
|
|
checkIfBoxed(this); |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.isBoxed) { |
|
|
|
if(this.isBoxed) { |
|
|
@ -4876,9 +4876,9 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
|
|
|
|
|
|
|
|
if (!this.containsEffect(1672601862)) {//Deathshroud
|
|
|
|
if (!this.containsEffect(1672601862)) {//Deathshroud
|
|
|
|
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false); |
|
|
|
PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false); |
|
|
|
} |
|
|
|
if(!this.getEffects().containsKey("MoveBuff")){ |
|
|
|
if(!this.getEffects().containsKey("MoveBuff")){ |
|
|
|
PowersManager.applyPower(this, this, this.loc, 1514898036, 40, false); |
|
|
|
PowersManager.applyPower(this, this, this.loc, 1514898036, 40, false); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
if(!this.title.equals(CharacterTitle.NONE)) { |
|
|
|
if(!this.title.equals(CharacterTitle.NONE)) { |
|
|
@ -4897,8 +4897,6 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void checkIfBoxed(PlayerCharacter player){ |
|
|
|
public static void checkIfBoxed(PlayerCharacter player){ |
|
|
|
if(System.currentTimeMillis() < player.nextBoxCheck) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
player.nextBoxCheck = System.currentTimeMillis() + 10000; |
|
|
|
player.nextBoxCheck = System.currentTimeMillis() + 10000; |
|
|
|
try { |
|
|
|
try { |
|
|
|