Fixed an issue where falconry pulse could be interrupted, causing falcon to go missing

This commit is contained in:
Lila Hioh
2022-08-03 12:26:18 +00:00
committed by Ryan
parent e8adda080f
commit 9226541f4c
@@ -93,7 +93,8 @@ public final class FalconryCatchPulse extends SkillPulse<NPC> {
player.getEquipment().add(GLOVE, true, false);
sendProjectile();
}
player.lock(getDistance());
node.lock(getDistance()+1);
player.lock(getDistance()+1);
}
return true;
}
@@ -114,7 +115,6 @@ public final class FalconryCatchPulse extends SkillPulse<NPC> {
return false;
}
final boolean success = success();
player.lock();
player.getPacketDispatch().sendMessage(success ? "The falcon successfully swoops down and captures the kebbit." : "The falcon swoops down on the kebbit, but just misses catching it.");
if (success) {
node.finalizeDeath(player);
@@ -142,7 +142,6 @@ public final class FalconryCatchPulse extends SkillPulse<NPC> {
player.getEquipment().add(FALCON, true, false);
}
}
player.unlock();
player.face(null);
return true;
}