v1.0.1: fixed a crash caused by AI changes
This commit is contained in:
@@ -105,7 +105,7 @@ public class GnollTrickster extends Gnoll {
|
||||
@Override
|
||||
public void aggro(Char ch) {
|
||||
//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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ 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]) {
|
||||
if (ch == null || fieldOfView == null || fieldOfView[ch.pos]) {
|
||||
super.aggro(ch);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user