enemy/notEnemy fix for mobs

This commit is contained in:
2023-04-22 18:24:43 -05:00
parent ae968211ab
commit ed1a6192c7
2 changed files with 5 additions and 4 deletions
-1
View File
@@ -50,7 +50,6 @@ public class Enum {
} }
public enum MonsterType implements EnumBitSetHelper<MonsterType> { public enum MonsterType implements EnumBitSetHelper<MonsterType> {
None,
Aelfborn, Aelfborn,
All, All,
Animal, Animal,
+5 -3
View File
@@ -1718,10 +1718,12 @@ public class Mob extends AbstractIntelligenceAgent {
Logger.error("Null equipset returned for uuid " + currentID); Logger.error("Null equipset returned for uuid " + currentID);
this.equip = new HashMap<>(0); this.equip = new HashMap<>(0);
} }
// Combine mobbase and mob aggro arrays into one bitvector // Combine mobbase and mob aggro arrays into one bitvector
this.notEnemy.addAll(this.getMobBase().notEnemy); if(this.getMobBase().notEnemy.size() > 0)
this.enemy.addAll(this.getMobBase().enemy); this.notEnemy.addAll(this.getMobBase().notEnemy);
if(this.getMobBase().enemy.size() > 0)
this.enemy.addAll(this.getMobBase().enemy);
try { try {
NPCManager.applyRuneSetEffects(this); NPCManager.applyRuneSetEffects(this);