Robertdebrus / ANLEra

ANLEra add-on for Battle for Wesnoth
GNU General Public License v2.0
2 stars 2 forks source link

The era is incompatible with scenarios which have recruit=xyz in their [side] tags #17

Closed sevu closed 6 years ago

sevu commented 7 years ago

Just saying. The normal ANL is such a case. A prestart event which sets the recruits would solve this.

sevu commented 6 years ago

That would be such an event, but nothing comes to mind to filter only for the player sides. (Without side filter it's applied to all sides)

#define REMOVE_RECRUITS

#arg SIDE_FILTER
#endarg

    [event]
        name=prestart

        [disallow_recruit]
            {SIDE_FILTER}
        [/disallow_recruit]
    [/event]
#enddef
sevu commented 6 years ago

recruit: a list of unit types. At the beginning of the scenario, the side gains recruitment of these units. (Version 1.13.? and later only) in multiplayer, unless you specify faction=Custom, this will be overwritten by the recruit list from the faction.

Hmmm, seems the problem is solved by itself... Not tested.