mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-16 03:20:19 -07:00
Fixed a bug with slayer.
This commit is contained in:
parent
476291f14b
commit
f5aab8c9c4
1 changed files with 21 additions and 22 deletions
|
|
@ -108,8 +108,6 @@ public final class SlayerManager {
|
|||
if(hasTask()) {
|
||||
player.getSkills().addExperience(Skills.SLAYER, npc.getSkills().getMaximumLifepoints());
|
||||
decrementAmount(1);
|
||||
}
|
||||
|
||||
if(!hasTask()){
|
||||
flags.setTaskStreak(flags.getTaskStreak() + 1);
|
||||
flags.setCompletedTasks(flags.getCompletedTasks() + 1);
|
||||
|
|
@ -135,6 +133,7 @@ public final class SlayerManager {
|
|||
//player.sendMessage("You're assigned to kill " + NPCDefinition.forId((player.getSlayer().getTask().getNpcs()[0])).getName().toLowerCase() + "s; Only " + getAmount() + " more to go.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Assigns a task to the manager.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue