v2.4.1: fixed swiftness glyph deactivating around neutral mobs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user