mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 08:27:45 +00:00
Restore Area Kill Quest check for normal QuestKill
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user