v2.4.0: fixed cases where Yog could command minions to attack themselves
This commit is contained in:
+1
-1
@@ -503,7 +503,7 @@ public class YogDzewa extends Mob {
|
|||||||
@Override
|
@Override
|
||||||
public void aggro(Char ch) {
|
public void aggro(Char ch) {
|
||||||
for (Mob mob : (Iterable<Mob>)Dungeon.level.mobs.clone()) {
|
for (Mob mob : (Iterable<Mob>)Dungeon.level.mobs.clone()) {
|
||||||
if (Dungeon.level.distance(pos, mob.pos) <= 4 &&
|
if (mob != ch && Dungeon.level.distance(pos, mob.pos) <= 4 &&
|
||||||
(mob instanceof Larva || mob instanceof YogRipper || mob instanceof YogEye || mob instanceof YogScorpio)) {
|
(mob instanceof Larva || mob instanceof YogRipper || mob instanceof YogEye || mob instanceof YogScorpio)) {
|
||||||
mob.aggro(ch);
|
mob.aggro(ch);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user