forked from 2009Scape/Server
Fixed an issue where falconry pulse could be interrupted, causing falcon to go missing
This commit is contained in:
parent
e8adda080f
commit
9226541f4c
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue