Made it so that Tallin's moves are actually restored;...
...ensured that Tallin gets the right ellipse image set after transformation.
This commit is contained in:
parent
4345f5ea75
commit
0a1a7ccefd
2 changed files with 38 additions and 5 deletions
|
@ -104,22 +104,40 @@
|
|||
[case]
|
||||
value=0,1
|
||||
{VARIABLE new_tallin_type "Dark Adept"}
|
||||
{VARIABLE new_tallin_moves 5}
|
||||
[/case]
|
||||
|
||||
[case]
|
||||
value=2
|
||||
{VARIABLE new_tallin_type "Dark Sorcerer"}
|
||||
{VARIABLE new_tallin_moves 5}
|
||||
[/case]
|
||||
|
||||
[else]
|
||||
{VARIABLE new_tallin_type Lich}
|
||||
{VARIABLE new_tallin_moves 6}
|
||||
[/else]
|
||||
[/switch]
|
||||
|
||||
{TRANSFORM_UNIT id=Tallin $new_tallin_type}
|
||||
{FULL_HEAL id=Tallin}
|
||||
[modify_unit]
|
||||
[filter]
|
||||
id=Tallin
|
||||
[/filter]
|
||||
|
||||
{CLEAR_VARIABLE old_tallin_level,new_tallin_type}
|
||||
type=$new_tallin_type
|
||||
moves=$new_tallin_moves
|
||||
[/modify_unit]
|
||||
|
||||
# Sadly, due to some limitation, we cannot change the ellipse in the [modify_unit] block above
|
||||
[modify_unit]
|
||||
[filter]
|
||||
id=Tallin
|
||||
[/filter]
|
||||
|
||||
ellipse="misc/ellipse"
|
||||
[/modify_unit]
|
||||
|
||||
{CLEAR_VARIABLE old_tallin_level,new_tallin_type,new_tallin_moves}
|
||||
|
||||
[store_gold]
|
||||
side=1
|
||||
|
|
|
@ -280,8 +280,23 @@
|
|||
[/else]
|
||||
[/switch]
|
||||
|
||||
{TRANSFORM_UNIT id=Tallin $new_tallin_type}
|
||||
{FULL_HEAL id=Tallin}
|
||||
[modify_unit]
|
||||
[filter]
|
||||
id=Tallin
|
||||
[/filter]
|
||||
|
||||
type=$new_tallin_type
|
||||
moves=6
|
||||
[/modify_unit]
|
||||
|
||||
# Sadly, due to some limitation, we cannot change the ellipse in the [modify_unit] block above
|
||||
[modify_unit]
|
||||
[filter]
|
||||
id=Tallin
|
||||
[/filter]
|
||||
|
||||
ellipse="misc/ellipse"
|
||||
[/modify_unit]
|
||||
|
||||
{CLEAR_VARIABLE old_tallin_level,new_tallin_type}
|
||||
[/event]
|
||||
|
|
Loading…
Add table
Reference in a new issue