One more feeding improvement:

check the ability presence, not the type.

This should make feeding usable event if you [base_unit] the unit :)
This commit is contained in:
Benoît Timbert 2008-01-09 22:19:10 +00:00
parent 84e92880aa
commit 7005e46001
2 changed files with 3 additions and 3 deletions

View file

@ -464,7 +464,7 @@ Enemy units cannot see this unit while it is in deep water, except if they have
#enddef
# wmllint: unbalanced-on
#define ABILITY_FEEDING FEEDER_TYPE
#define ABILITY_FEEDING
# Canned definition of the Feeding ability to be included in an
# [abilities] clause. Note: this is deliberately unbalanced WML,
# in order to close the abilities clause then insert the event
@ -491,7 +491,7 @@ This unit gains 1 hitpoint added to its maximum whenever it kills a living unit.
[/filter]
[filter_second]
type={FEEDER_TYPE}
ability=feeding
[/filter_second]
[unstore_unit]

View file

@ -20,7 +20,7 @@
unit_description= _ "The necrophage, or 'devourer of the dead', is a monstrous, corpulent thing, which bears only a crude resemblance to a man. They appear to be quite rotten in spite of their ability to move; they are rife with disease and poisons of the blood, and have a stench to match. Likely the most unhinging fact about them, for fact it appears to be, is that they were somehow made from living men - a process about which almost nothing is known, but which can be nothing but nightmarish."+{SPECIAL_NOTES}+{SPECIAL_NOTES_POISON}+{SPECIAL_NOTES_FEEDING}
die_sound=ghoul-hit.wav
[abilities]
{ABILITY_FEEDING Necrophage}
{ABILITY_FEEDING}
[/abilities]
{DEFENSE_ANIM "units/undead/necrophage-defend-2.png" "units/undead/necrophage-defend-1.png" ghoul-hit.wav }
[attack]