v2.0.1: fixed blooming elemental strike placing tall grass on plants
This commit is contained in:
+3
-1
@@ -335,7 +335,9 @@ public class ElementalStrike extends ArmorAbility {
|
|||||||
int terr = Dungeon.level.map[cell];
|
int terr = Dungeon.level.map[cell];
|
||||||
if (terr == Terrain.EMPTY || terr == Terrain.EMBERS || terr == Terrain.EMPTY_DECO ||
|
if (terr == Terrain.EMPTY || terr == Terrain.EMBERS || terr == Terrain.EMPTY_DECO ||
|
||||||
terr == Terrain.GRASS) {
|
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);
|
Level.set(cell, highGrassType);
|
||||||
grassToPlace--;
|
grassToPlace--;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user