Fixed agility interruptible obstacles and repeating low walls

This commit is contained in:
Ceikry
2022-04-18 08:12:03 +00:00
committed by Ryan
parent e9c23a845b
commit bd7d8eb276
2 changed files with 3 additions and 0 deletions
@@ -141,6 +141,7 @@ public final class AgilityHandler {
p.setLocation(player.getLocation().transform(0,0,0));
return Unit.INSTANCE;
});
lock(player, ((int) start.getDistance(end)) * 3);
ForceMovement movement = new ForceMovement(player, start, end, animation, speed) {
@Override
public void stop() {
@@ -175,6 +176,7 @@ public final class AgilityHandler {
p.setLocation(player.getLocation().transform(0,0,0));
return Unit.INSTANCE;
});
lock(player, ((int) start.getDistance(end)) * 3);
if (delay < 1) {
return forceWalk(player, courseIndex, start, end, animation, speed, experience, message);
}
@@ -60,6 +60,7 @@ class BarbarianOutpostCourse
1948 -> {
if (player.location.x > node.location.x) {
player.packetDispatch.sendMessage("You cannot climb from this side.")
return true //who missed this return? lol.
}
val flag = if (node.location == Location(2536, 3553, 0)) 4 else if (node.location == Location(2539, 3553, 0)) 5 else 6
sendMessage(player, "You climb the low wall...")