exclude act5 barbarians as enemies

This commit is contained in:
Héctor Giménez
2023-09-12 21:41:40 +09:00
parent d2d954a65a
commit 4a74a310ed

View File

@@ -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)
}
}