SotA: Fix animation bug

Fixes error occuring when unit doing the recruit animation is standing
on the bird bones. Reported here: https://forums.wesnoth.org/viewtopic.php?f=4&t=46480
This commit is contained in:
sigurdfdragon 2017-07-01 14:39:58 -04:00
parent b19483e66a
commit 36175c46cd
2 changed files with 58 additions and 16 deletions

View file

@ -203,16 +203,37 @@
[/if]
# Remove the bones and show a resurrected bird:
[animate_unit]
# Fire the recruitment animation (actually an extra_anim):
[filter]
[if]
[have_unit]
id=Ras-Tabahn
[/filter]
flag=recruit2
[facing]
x,y=32,12
[/facing]
[/animate_unit]
[/have_unit]
[then]
# Since Ras-Tabahn is standing on the bones, face him toward the most likely hex for the bird to appear
[animate_unit]
# Fire the recruitment animation (actually an extra_anim):
[filter]
id=Ras-Tabahn
[/filter]
flag=recruit2
[facing]
x,y=31,12
[/facing]
[/animate_unit]
[/then]
[else]
[animate_unit]
# Fire the recruitment animation (actually an extra_anim):
[filter]
id=Ras-Tabahn
[/filter]
flag=recruit2
[facing]
x,y=32,12
[/facing]
[/animate_unit]
[/else]
[/if]
[remove_item]
# Remove the bones:
x,y=32,12

View file

@ -184,16 +184,37 @@ We have reached a pass through the mountains that Ras-Tabahn knew of. The air is
[/message]
# Remove the bones and show a resurrected bird:
[animate_unit]
# Fire the recruitment animation (actually an extra_anim):
[filter]
[if]
[have_unit]
id=Ardonna
[/filter]
flag=recruit2
[facing]
x,y=16,21
[/facing]
[/animate_unit]
[/have_unit]
[then]
# Since Ardonna is standing on the bones, face her toward the most likely hex for the bird to appear
[animate_unit]
# Fire the recruitment animation (actually an extra_anim):
[filter]
id=Ardonna
[/filter]
flag=recruit2
[facing]
x,y=15,21
[/facing]
[/animate_unit]
[/then]
[else]
[animate_unit]
# Fire the recruitment animation (actually an extra_anim):
[filter]
id=Ardonna
[/filter]
flag=recruit2
[facing]
x,y=16,21
[/facing]
[/animate_unit]
[/else]
[/if]
[remove_item]
# Remove the bones:
x,y=16,21