v0.8.2c: adjusted how permissive DM-201's are at grenade tossing

This commit is contained in:
Evan Debenham 2020-08-27 11:44:43 -04:00
parent 7ddccd23a9
commit e1a7382d36

View File

@ -65,8 +65,8 @@ public class DM201 extends DM200 {
GameScene.add(Blob.seed(pos, 0, CorrosiveGas.class));
if (state == HUNTING && enemy != null && enemySeen
&& threatened && !Dungeon.level.adjacent(pos, enemy.pos)){
enemySeen = enemy != null && enemy.isAlive() && fieldOfView[enemy.pos] && enemy.invisible <= 0;
&& threatened && !Dungeon.level.adjacent(pos, enemy.pos) && fieldOfView[enemy.pos]){
enemySeen = enemy.isAlive() && fieldOfView[enemy.pos] && enemy.invisible <= 0;
if (sprite != null && (sprite.visible || enemy.sprite.visible)) {
sprite.zap( enemy.pos );
return false;