From f98495d1aecab92ded2f180f91c92aa01206da8a Mon Sep 17 00:00:00 2001 From: Sam Marder Date: Sat, 30 May 2026 14:31:07 +0000 Subject: [PATCH] Made it possible to kill the Lesser Demon Champion --- .../activity/cchallange/npc/LesserDemonChampionNPC.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Server/src/main/content/global/activity/cchallange/npc/LesserDemonChampionNPC.kt b/Server/src/main/content/global/activity/cchallange/npc/LesserDemonChampionNPC.kt index e62f73bf2..e41fd5d72 100644 --- a/Server/src/main/content/global/activity/cchallange/npc/LesserDemonChampionNPC.kt +++ b/Server/src/main/content/global/activity/cchallange/npc/LesserDemonChampionNPC.kt @@ -1,8 +1,6 @@ package content.global.activity.cchallange.npc import core.api.* -import core.game.container.impl.EquipmentContainer -import core.game.global.action.EquipHandler import core.game.node.entity.Entity import core.game.node.entity.combat.BattleState import core.game.node.entity.npc.AbstractNPC @@ -62,12 +60,11 @@ class LesserDemonChampionNPC(id: Int = 0, location: Location? = null) : Abstract super.checkImpact(state) val player = state.attacker if (player is Player) { - if (!player.equipment[3].hasItemPlugin()) { + if (player.equipment.isEmpty) { state.neutralizeHits() state.estimatedHit = state.maximumHit } else { - EquipHandler.unequip(player, EquipmentContainer.SLOT_WEAPON, id) - sendMessage(player, "You cannot use weapons in this challenge.") + sendMessage(player, "You cannot wear any equipment in this challenge.") if (state.estimatedHit > -1) { state.estimatedHit = 0 return