From 4a74a310ed0c2b07cbefe13d2e6d1aa2d22c4664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Gim=C3=A9nez?= Date: Tue, 12 Sep 2023 21:41:40 +0900 Subject: [PATCH] exclude act5 barbarians as enemies --- pkg/data/npc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/data/npc.go b/pkg/data/npc.go index b347fc7..7eba095 100644 --- a/pkg/data/npc.go +++ b/pkg/data/npc.go @@ -50,7 +50,7 @@ func (m Monsters) FindOne(id npc.ID, t MonsterType) (Monster, bool) { func (m Monsters) Enemies(filters ...MonsterFilter) []Monster { monsters := make([]Monster, 0) for _, mo := range m { - if !mo.IsMerc() && mo.Name != npc.BaalTaunt && !mo.IsGoodNPC() && mo.Stats[stat.Life] > 0 { + if !mo.IsMerc() && mo.Name != npc.BaalTaunt && mo.Name != npc.Act5Combatant && mo.Name != npc.Act5Combatant2 && !mo.IsGoodNPC() && mo.Stats[stat.Life] > 0 { monsters = append(monsters, mo) } }