forked from MagicBane/Server
enemy/notEnemy fix for mobs
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user