diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java index ff762778b..c9ff6f091 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java @@ -771,7 +771,7 @@ public abstract class Mob extends Char { state = HUNTING; target = enemy.pos; - if (Dungeon.isChallenged( Challenges.SWARM_INTELLIGENCE )) { + if (alignment == Alignment.ENEMY && Dungeon.isChallenged( Challenges.SWARM_INTELLIGENCE )) { for (Mob mob : Dungeon.level.mobs) { if (Dungeon.level.distance(pos, mob.pos) <= 8 && mob.state != mob.HUNTING) { mob.beckon( target ); @@ -817,7 +817,7 @@ public abstract class Mob extends Char { state = HUNTING; target = enemy.pos; - if (Dungeon.isChallenged( Challenges.SWARM_INTELLIGENCE )) { + if (alignment == Alignment.ENEMY && Dungeon.isChallenged( Challenges.SWARM_INTELLIGENCE )) { for (Mob mob : Dungeon.level.mobs) { if (Dungeon.level.distance(pos, mob.pos) <= 8 && mob.state != mob.HUNTING) { mob.beckon( target );