v0.9.4: fixed cases of shadows buff detaching multiple times
This commit is contained in:
parent
e984595c32
commit
559a722a89
|
@ -87,11 +87,13 @@ public class Shadows extends Invisibility {
|
||||||
|
|
||||||
if (--left <= 0) {
|
if (--left <= 0) {
|
||||||
detach();
|
detach();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (Mob m : Dungeon.level.mobs){
|
for (Mob m : Dungeon.level.mobs){
|
||||||
if (Dungeon.level.adjacent(m.pos, target.pos) && m.alignment != target.alignment){
|
if (Dungeon.level.adjacent(m.pos, target.pos) && m.alignment != target.alignment){
|
||||||
detach();
|
detach();
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user