WC: fix abnormal commander mechanic (#7284)
Co-authored-by: Gunter Labes <soliton@wesnoth.org>
This commit is contained in:
parent
4d092347db
commit
547aab3896
1 changed files with 3 additions and 0 deletions
|
@ -19,8 +19,11 @@ on_event("die", function(cx)
|
|||
}
|
||||
commander = commander[1]
|
||||
if commander then
|
||||
commander:extract()
|
||||
commander.id = u.id
|
||||
commander.canrecruit = true
|
||||
commander:remove_modifications({ id = "wc2_commander_overlay" })
|
||||
commander:to_map()
|
||||
wesnoth.wml_actions.message {
|
||||
id = commander.id,
|
||||
message = strings.promotion
|
||||
|
|
Loading…
Add table
Reference in a new issue