Extra safety check

This commit is contained in:
Bishop 2026-06-28 10:11:02 -05:00
parent b5c53a47d6
commit 9adb43b5ca

View file

@ -1,5 +1,6 @@
package content.global.skill.construction.decoration.workshop
import content.global.skill.construction.CrestType
import content.global.skill.crafting.HeraldicProduct
import content.region.asgarnia.falador.dialogue.SirReniteeDialogueFile
import core.api.*
@ -32,7 +33,7 @@ class EaselListener : InteractionListener {
private fun checkRequirements(player: Player, product: HeraldicProduct) : Boolean {
when {
(!getAttribute(player, SirReniteeDialogueFile.attributeCrest, false)) -> {
(!getAttribute(player, SirReniteeDialogueFile.attributeCrest, false) || player.houseManager.crest == CrestType.NULL) -> {
sendDialogue(player, "You need a crest to make heraldic items.") // Placeholder
return false
}