v1.0.1: fixed a crash caused by AI changes
This commit is contained in:
+1
-1
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user