From 523059aac3aea886a241047f3dc0950e4af21913 Mon Sep 17 00:00:00 2001 From: Kam Date: Mon, 4 Mar 2024 03:04:38 -0500 Subject: [PATCH] Restore Area Kill Quest check for normal QuestKill --- .../java/noppes/npcs/ServerEventsHandler.java | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/main/java/noppes/npcs/ServerEventsHandler.java b/src/main/java/noppes/npcs/ServerEventsHandler.java index 4175fc93f..9dc075e7d 100644 --- a/src/main/java/noppes/npcs/ServerEventsHandler.java +++ b/src/main/java/noppes/npcs/ServerEventsHandler.java @@ -344,18 +344,13 @@ public class ServerEventsHandler { if(partyQuest != null && partyQuest.getId() == data.quest.getId()) continue; - if (data.quest.type == EnumQuestType.AreaKill && all) { - List list = player.worldObj.getEntitiesWithinAABB(EntityPlayer.class, entity.boundingBox.expand(10, 10, 10)); - for (EntityPlayer pl : list) { - if (pl != player) { - if(party == null){ - doQuest(pl, entity, false); - } else if(!party.hasPlayer(pl.getUniqueID())){ - doQuest(pl, entity, false); - } - } - } - } + if(data.quest.type == EnumQuestType.AreaKill && all){ + List list = player.worldObj.getEntitiesWithinAABB(EntityPlayer.class, entity.boundingBox.expand(10, 10, 10)); + for(EntityPlayer pl : list) + if(pl != player) + doQuest(pl, entity, false); + + } String name = entityName; QuestKill quest = (QuestKill) data.quest.questInterface;