v2.0.1: fixed blooming elemental strike placing tall grass on plants

This commit is contained in:
Evan Debenham
2023-03-21 12:17:59 -04:00
parent 2f8b6d795c
commit 94ab7ddeee

View File

@@ -335,7 +335,9 @@ public class ElementalStrike extends ArmorAbility {
int terr = Dungeon.level.map[cell];
if (terr == Terrain.EMPTY || terr == Terrain.EMBERS || terr == Terrain.EMPTY_DECO ||
terr == Terrain.GRASS) {
if (grassToPlace > 0){
if (grassToPlace > 0
&& !Char.hasProp(Actor.findChar(cell), Char.Property.IMMOVABLE)
&& Dungeon.level.plants.get(cell) == null){
Level.set(cell, highGrassType);
grassToPlace--;
} else {