v1.0.1: fixed a crash caused by AI changes

This commit is contained in:
Evan Debenham 2021-08-25 13:10:01 -04:00
parent 585a0e90bf
commit 8b9821d78f
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ public class GnollTrickster extends Gnoll {
@Override @Override
public void aggro(Char ch) { public void aggro(Char ch) {
//cannot be aggroed to something it can't see //cannot be aggroed to something it can't see
if (fieldOfView == null || fieldOfView[ch.pos]) { if (ch == null || fieldOfView == null || fieldOfView[ch.pos]) {
super.aggro(ch); super.aggro(ch);
} }
} }

View File

@ -97,7 +97,7 @@ public class Scorpio extends Mob {
@Override @Override
public void aggro(Char ch) { public void aggro(Char ch) {
//cannot be aggroed to something it can't see //cannot be aggroed to something it can't see
if (fieldOfView == null || fieldOfView[ch.pos]) { if (ch == null || fieldOfView == null || fieldOfView[ch.pos]) {
super.aggro(ch); super.aggro(ch);
} }
} }