v0.9.4: fixed cases of shadows buff detaching multiple times

This commit is contained in:
Evan Debenham 2021-07-09 14:55:29 -04:00
parent e984595c32
commit 559a722a89

View File

@ -87,11 +87,13 @@ public class Shadows extends Invisibility {
if (--left <= 0) {
detach();
return true;
}
for (Mob m : Dungeon.level.mobs){
if (Dungeon.level.adjacent(m.pos, target.pos) && m.alignment != target.alignment){
detach();
return true;
}
}