v0.9.4: properly fixed issues with ankh revives and FOV-granting allies
This commit is contained in:
parent
462960a08d
commit
36dcb43213
|
@ -377,6 +377,7 @@ public class Dungeon {
|
||||||
|
|
||||||
hero.curAction = hero.lastAction = null;
|
hero.curAction = hero.lastAction = null;
|
||||||
|
|
||||||
|
observe();
|
||||||
try {
|
try {
|
||||||
saveAll();
|
saveAll();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
|
@ -1126,6 +1126,11 @@ public abstract class Mob extends Char {
|
||||||
}
|
}
|
||||||
if (ally.sprite != null) ally.sprite.place(ally.pos);
|
if (ally.sprite != null) ally.sprite.place(ally.pos);
|
||||||
|
|
||||||
|
if (ally.fieldOfView == null || ally.fieldOfView.length != level.length()){
|
||||||
|
ally.fieldOfView = new boolean[level.length()];
|
||||||
|
}
|
||||||
|
Dungeon.level.updateFieldOfView( ally, ally.fieldOfView );
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
heldAllies.clear();
|
heldAllies.clear();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user