v0.9.3: fixed restored nature rooting allies
This commit is contained in:
@@ -320,7 +320,7 @@ public enum Talent {
|
|||||||
Random.shuffle(grassCells);
|
Random.shuffle(grassCells);
|
||||||
for (int cell : grassCells){
|
for (int cell : grassCells){
|
||||||
Char ch = Actor.findChar(cell);
|
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));
|
Buff.affect(ch, Roots.class, 1f + hero.pointsInTalent(RESTORED_NATURE));
|
||||||
}
|
}
|
||||||
if (Dungeon.level.map[cell] == Terrain.EMPTY ||
|
if (Dungeon.level.map[cell] == Terrain.EMPTY ||
|
||||||
|
|||||||
Reference in New Issue
Block a user