Merge lp:~widelands-dev/widelands/attack_fix into lp:widelands
Proposed by
TiborB
Status: | Merged |
---|---|
Merged at revision: | 7503 |
Proposed branch: | lp:~widelands-dev/widelands/attack_fix |
Merge into: | lp:widelands |
Diff against target: |
73 lines (+21/-6) 1 file modified
src/ai/defaultai.cc (+21/-6) |
To merge this branch: | bzr merge lp:~widelands-dev/widelands/attack_fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+266796@code.launchpad.net |
Description of the change
This is purely (a quick) AI fix of attacking logic:
- visibility of enemy site is checked (there is no "fog of war" for AI so we must check it...)
- changed algorithm to pick random amount of available soldiers for attack (generally AI tent to pick "almost all" available soldiers, now it pick lesser number)
To post a comment you must log in.
Code LGTM - Just one question in the diff comments.