make pathfinder acknowledge that status effects given by floors can do damage too (#10987)

This commit is contained in:
WMF
2025-07-04 16:41:15 +02:00
committed by GitHub
parent d6877a2320
commit d1b4158285
2 changed files with 6 additions and 1 deletions

View File

@@ -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;