From 192700e6b482649f0d1b489a21774173d89dc858 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 22 May 2021 20:24:01 -0400 Subject: [PATCH] v0.9.3: fixed restored nature rooting allies --- .../shatteredpixeldungeon/actors/hero/Talent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java index 3ab9f2820..4aff54470 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Talent.java @@ -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 ||