diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/GnollTrickster.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/GnollTrickster.java index 2fa2e8aa1..ac01c05a3 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/GnollTrickster.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/GnollTrickster.java @@ -107,7 +107,9 @@ public class GnollTrickster extends Gnoll { @Override public void aggro(Char ch) { //cannot be aggroed to something it can't see - if (ch == null || fieldOfView == null || fieldOfView[ch.pos]) { + //skip this check if FOV isn't initialized + if (ch == null || fieldOfView == null + || fieldOfView.length != Dungeon.level.length() || fieldOfView[ch.pos]) { super.aggro(ch); } } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Scorpio.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Scorpio.java index 209f459b0..865088d22 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Scorpio.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Scorpio.java @@ -97,7 +97,9 @@ public class Scorpio extends Mob { @Override public void aggro(Char ch) { //cannot be aggroed to something it can't see - if (ch == null || fieldOfView == null || fieldOfView[ch.pos]) { + //skip this check if FOV isn't initialized + if (ch == null || fieldOfView == null + || fieldOfView.length != Dungeon.level.length() || fieldOfView[ch.pos]) { super.aggro(ch); } }