mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 21:47:53 +00:00

Stores in variable the defense of a unit on a particular terrain. If terrain is not specified, the terrain on which the units currently stands is used. (Note: it is a WML defense, so the higher it is, the weaker unit's defense is.) * StandardUnitFilter * loc_x, loc_y: x and y of terrain location. * terrain: alternatively, the character of terrain. * variable: the name of the variable into which to store the defense. default: "terrain_defense"