v1.0.1: fixed a crash caused by AI changes
This commit is contained in:
parent
585a0e90bf
commit
8b9821d78f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user