Fixed the trolls losing control of their villages when allying with Deoran.
This commit is contained in:
parent
ad5d3ff2ba
commit
e49fa11f34
1 changed files with 8 additions and 4 deletions
|
@ -345,7 +345,6 @@
|
|||
[/message]
|
||||
[/event]
|
||||
|
||||
|
||||
[event]
|
||||
name=sighted
|
||||
[filter]
|
||||
|
@ -398,11 +397,18 @@
|
|||
gold=$stored_side_3.gold
|
||||
[/modify_side]
|
||||
|
||||
|
||||
# Note: the order of storing the villages, flipping the
|
||||
# units and recapturing the villages is important, because a
|
||||
# side with no leader cannot own villages.
|
||||
|
||||
[store_villages]
|
||||
side=3
|
||||
owner_side=3
|
||||
variable=side_3_villages
|
||||
[/store_villages]
|
||||
|
||||
{MODIFY_UNIT side=3 side 4}
|
||||
|
||||
{FOREACH side_3_villages i}
|
||||
[capture_village]
|
||||
x,y=$side_3_villages[$i].x,$side_3_villages[$i].y
|
||||
|
@ -410,8 +416,6 @@
|
|||
[/capture_village]
|
||||
{NEXT i}
|
||||
|
||||
{MODIFY_UNIT side=3 side 4}
|
||||
|
||||
{CLEAR_VARIABLE stored_side_3}
|
||||
{CLEAR_VARIABLE side_3_villages}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue