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 fd12af446..df07a028a 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 @@ -101,6 +101,14 @@ public class GnollTrickster extends Gnoll { return super.getCloser( target ); } } + + @Override + public void aggro(Char ch) { + //cannot be aggroed to something it can't see + if (fieldOfView == null || fieldOfView[ch.pos]) { + super.aggro(ch); + } + } @Override protected Item createLoot() { 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 4b552036a..e0bd8a232 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 @@ -94,6 +94,14 @@ public class Scorpio extends Mob { } } + @Override + public void aggro(Char ch) { + //cannot be aggroed to something it can't see + if (fieldOfView == null || fieldOfView[ch.pos]) { + super.aggro(ch); + } + } + @Override protected Item createLoot() { Class loot;