mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Entrana Prayer draining fixed
This commit is contained in:
parent
939f91aaf2
commit
70dddd0e48
1 changed files with 4 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ package plugin.dialogue;
|
|||
|
||||
import org.crandor.game.content.dialogue.DialoguePlugin;
|
||||
import org.crandor.game.content.dialogue.FacialExpression;
|
||||
import org.crandor.game.content.skill.Skills;
|
||||
import org.crandor.game.node.entity.npc.NPC;
|
||||
import org.crandor.game.node.entity.player.Player;
|
||||
import org.crandor.game.node.entity.player.link.quest.Quest;
|
||||
|
|
@ -104,6 +105,9 @@ public final class CaveMonk extends DialoguePlugin {
|
|||
end();
|
||||
break;
|
||||
case 20:
|
||||
if (player.getSkills().getLevel(Skills.PRAYER) > 2 && player.getSkills().getPrayerPoints() > 2) {
|
||||
player.getSkills().decrementPrayerPoints(player.getSkills().getLevel(Skills.PRAYER) - 2);
|
||||
}
|
||||
player.getProperties().setTeleportLocation(DUNGEON);
|
||||
end();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue