v0.9.3: fixed restored nature rooting allies

This commit is contained in:
Evan Debenham
2021-05-22 20:24:01 -04:00
parent 6e324d7d0b
commit 192700e6b4

View File

@@ -320,7 +320,7 @@ public enum Talent {
Random.shuffle(grassCells);
for (int cell : grassCells){
Char ch = Actor.findChar(cell);
if (ch != null){
if (ch != null && ch.alignment == Char.Alignment.ENEMY){
Buff.affect(ch, Roots.class, 1f + hero.pointsInTalent(RESTORED_NATURE));
}
if (Dungeon.level.map[cell] == Terrain.EMPTY ||