Entrana Prayer draining fixed

This commit is contained in:
CSS-Lletya 2020-03-28 18:10:57 -04:00
parent 939f91aaf2
commit 70dddd0e48

View file

@ -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;