v3.0.1: fixed crashes when stasised scorpio ally is aggroed on new floor
This commit is contained in:
+3
-1
@@ -107,7 +107,9 @@ 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 (ch == null || fieldOfView == null || fieldOfView[ch.pos]) {
|
//skip this check if FOV isn't initialized
|
||||||
|
if (ch == null || fieldOfView == null
|
||||||
|
|| fieldOfView.length != Dungeon.level.length() || fieldOfView[ch.pos]) {
|
||||||
super.aggro(ch);
|
super.aggro(ch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -97,7 +97,9 @@ 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 (ch == null || fieldOfView == null || fieldOfView[ch.pos]) {
|
//skip this check if FOV isn't initialized
|
||||||
|
if (ch == null || fieldOfView == null
|
||||||
|
|| fieldOfView.length != Dungeon.level.length() || fieldOfView[ch.pos]) {
|
||||||
super.aggro(ch);
|
super.aggro(ch);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user