Opened 6 years ago

Closed 6 years ago

#5258 closed defect (invalid)

(bug) Ungarrisonable building option doesn't work.

Reported by: nani Owned by:
Priority: Should Have Milestone:
Component: UI & Simulation Keywords:
Cc: Patch:

Description

If you want to create a building and ensure that it can not be garrisonable the parameter "ungarrisonable" doesn't seem to affect it:

Example (creating random map):

g_Map.placeEntityPassable("undeletable|ungarrisonable|structures/brit_wonder",0,new Vector2D(g_Map.size/2,g_Map.size/2), 0.0);

This will make the brit wonder undeletable as expected but not ungarrisonable, meaning units can still get in.

Change History (1)

comment:1 by elexis, 6 years ago

Component: MapsUI & Simulation
Keywords: ungarrisonable removed
Milestone: Alpha 24
Priority: If Time PermitsShould Have
Resolution: invalid
Status: newclosed

Ungarrisonable means that the unit (for instance regicide hero) cannot garrison, not that the GarrisonHolder is removed (which is what you wanted for your map https://wildfiregames.com/forum/index.php?/topic/24621-random-map-fert-king-of-the-hill-variant/ )

So you need a new special/filter/disablegarrisonholder.xml file that does the same as ungarrisonable just disables GarrisonHolder instead of Garrisonable.

Note: See TracTickets for help on using tickets.