Restore Area Kill Quest check for normal QuestKill

This commit is contained in:
Kam committed 2024-03-04 03:04:38 -05:00
1 parent 902990c07c
commit 523059aac3
1 file changed
+7 -12
@@ -344,18 +344,13 @@ public class ServerEventsHandler {
if(partyQuest != null && partyQuest.getId() == data.quest.getId())
continue;
if (data.quest.type == EnumQuestType.AreaKill && all) {
List<EntityPlayer> 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<EntityPlayer> 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;