LoW S3: fix bug which silently disabled Urudin retreat AI
Apparently Urudin was moved from side 3 to side 5 at some point, but the AI filter was not updated.
This commit is contained in:
parent
79015f0392
commit
71f1f4fade
2 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,8 @@ Version 1.13.4+dev:
|
|||
* New sprites for Li'sar.
|
||||
* S10: Clarify objectives and change egg image on capture.
|
||||
* S19c: Removed the undead and the swamps.
|
||||
* Legend of Wesmere
|
||||
* S3: fix bug which silently disabled Urudin retreat AI
|
||||
* Graphics:
|
||||
* Updated generic portrait of Mermaid Initiate.
|
||||
* Added generic portrait for Giant Spider.
|
||||
|
|
|
@ -183,7 +183,7 @@
|
|||
local my_ai = { }
|
||||
|
||||
function my_ai:retreat()
|
||||
local urudin = wesnoth.get_units({side = 3, id="Urudin"})[1]
|
||||
local urudin = wesnoth.get_units({id="Urudin"})[1]
|
||||
if urudin and urudin.valid then
|
||||
local mhp, hp = urudin.max_hitpoints, urudin.hitpoints
|
||||
local turn = wesnoth.current.turn
|
||||
|
|
Loading…
Add table
Reference in a new issue