Menu

#1017 AI doesn't try build Taverns in Sorceress' castles and can't build Dwarf Cottage

trunk
closed
nobody
AI (43)
5
2015-01-22
2014-12-06
Ghox
No

In the current AI implementation, AI tries to build the Tavern only in the case of Knight's Castle. But for Sorceress Castle, the Tavern is also required - for building Dwarf Cottage (which is required for succeeding army buildings). So, if a Sorceress Castle has not prebuilt Dwarf Cottage, then AI can't build it (because it must build the Tavern first, but current implementation doesn't allow that); and so far, AI cannot develop further army buildings in that Sorceress Castle. When such a Castle is the starting castle of AI player, then this player is merely unable to gather any serious army forces against monsters on the map (and other players), and it's development is blocked.

See in the source code (Rev. 3269): file ai_castle.cpp, function void AICastleDevelopment(Castle & c) - line 63 and below.

Discussion

  • SandySandy

    SandySandy - 2015-01-22

    fixed, rev. 3271.
    thanks you!

     
  • SandySandy

    SandySandy - 2015-01-22
    • status: open --> closed
     

Log in to post a comment.