v3.0.1: fixed crashes when stasised scorpio ally is aggroed on new floor
This commit is contained in:
@@ -107,7 +107,9 @@ public class GnollTrickster extends Gnoll {
|
||||
@Override
|
||||
public void aggro(Char ch) {
|
||||
//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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,9 @@ public class Scorpio extends Mob {
|
||||
@Override
|
||||
public void aggro(Char ch) {
|
||||
//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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user