bugBattle for Wesnoth - Bugs: bug #19662, AI recruitment aspect:...

Show feedback again

bug #19662: AI recruitment aspect: [limit]max=... sometimes disables recruitment altogether

Submitted by:  Matthias Schoeck <mattsc>
Submitted on:  Thu 26 Apr 2012 03:23:04 AM UTC  
Category: BugSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Artificial Intelligence
Status: FixedPrivacy: Public
Assigned to: Iurii Chernyi <crab>Open/Closed: Closed
Release: 1.10Operating System: OS X

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Thu 26 Apr 2012 03:23:04 AM UTC, original submission:

When setting a maximum number of recruits for a unit type using the AI recruitment aspect with the [limit] tag and 'max' key, the unit type apparently does not get taken off the list of recruitable units once the limit is reached. As a result, the AI might refuse to recruit "lesser units", and no units at all might be recruited.

To reproduce, set up recruitment aspect as given here:
and set 'recruit=Swordsman,Bowman,Peasant' for the side. No units at all will be recruited after the 1 Swordsman and 2 Bowmen. Same if Spearman is added to recruit list, but Pikemen will be recruited if they are added.

Matthias Schoeck <mattsc>
Project Member


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by flixx (Updated the item)
  • -unavailable- added by mattsc (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 24 Oct 2013 03:31:51 PM UTCflixxStatusNone=>Fixed
    Fri 11 May 2012 01:55:44 PM UTCanonymissimusAssigned toNone=>crab
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup