make pathfinder acknowledge that status effects given by floors can do damage too (#10987)
This commit is contained in:
@@ -379,6 +379,11 @@ public class Floor extends Block{
|
||||
return (other.realBlendId(otherTile) > realBlendId(tile) || edges(tile.x, tile.y) == null);
|
||||
}
|
||||
|
||||
/** @return whether being on this floor can damage a unit */
|
||||
public boolean damages(){
|
||||
return damageTaken > 0f || (status != null && status.damage > 0f);
|
||||
}
|
||||
|
||||
public static class UpdateRenderState{
|
||||
public Tile tile;
|
||||
public Floor floor;
|
||||
|
||||
Reference in New Issue
Block a user