v2.4.1: fixed swiftness glyph deactivating around neutral mobs

This commit is contained in:
Evan Debenham
2024-05-16 15:16:58 -04:00
parent 4b836591bf
commit 2f5531339b

View File

@@ -348,7 +348,7 @@ public class Armor extends EquipableItem {
boolean enemyNear = false;
//for each enemy, check if they are adjacent, or within 2 tiles and an adjacent cell is open
for (Char ch : Actor.chars()){
if ( Dungeon.level.distance(ch.pos, owner.pos) <= 2 && owner.alignment != ch.alignment){
if ( Dungeon.level.distance(ch.pos, owner.pos) <= 2 && owner.alignment != ch.alignment && ch.alignment != Char.Alignment.NEUTRAL){
if (Dungeon.level.adjacent(ch.pos, owner.pos)){
enemyNear = true;
break;