Should fix the growth ability of Ghast in DiD.

This commit is contained in:
Lari Nieminen 2007-08-26 14:37:29 +00:00
parent 713099208d
commit ead6b8387a

View File

@ -22,47 +22,14 @@
Special Notes: This unit gains 1 hitpoint added to its maximum whenever it kills a living unit.
"+{SPECIAL_NOTES_POISON}
# Growth ability
[abilities]
[regenerate]
name=growth
description=_ "Growth"
[/regenerate]
[resistance]
id=growth
name= _ "growth"
description=_ "Growth:
This unit gains 1 hitpoint added to its maximum whenever it kills a living unit."
[/resistance]
[/abilities]
[event]
name=die
first_time_only=no
[filter]
[not]
race=undead
[/not]
[/filter]
[filter_second]
ability=growth
[/filter_second]
[effect]
unit_type=Ghast
apply_to=hitpoints
increase_total=1
[/effect]
# Store and unstore to show the hitpoint bonus text
[store_unit]
[filter]
x,y=$x2,$y2
[/filter]
kill=yes
variable=ghastTemp
[/store_unit]
[unstore_unit]
variable=ghastTemp
red,green,blue=0,0,255
text="+1"
[/unstore_unit]
[clear_variable]
name=ghastTemp
[/clear_variable]
[/event]
die_sound=ghoul-hit.wav
{DEFENSE_ANIM "units/ghast-defend.png" "units/ghast.png" ghoul-hit.wav }
[movement_costs]
@ -144,4 +111,38 @@ Special Notes: This unit gains 1 hitpoint added to its maximum whenever it kills
[/frame]
[/animation]
[/attack]
[event]
name=die
first_time_only=no
[filter]
[not]
race=undead
[/not]
[/filter]
[filter_second]
type=Ghast
[/filter_second]
[effect]
unit_type=Ghast
apply_to=hitpoints
increase_total=1
[/effect]
# Store and unstore to show the hitpoint bonus text
[store_unit]
[filter]
x,y=$x2,$y2
[/filter]
kill=no
variable=ghast_temp
[/store_unit]
[unstore_unit]
variable=ghast_temp
red,green,blue=0,0,255
text= _ "+1 max HP"
[/unstore_unit]
[clear_variable]
name=ghastTemp
find_vacant=no
[/clear_variable]
[/event]
[/unit]