Fixed TEAM_COLOR_OVERRIDE.

This commit is contained in:
Lari Nieminen 2007-07-03 11:22:48 +00:00
parent fcdeaccd76
commit 3c6c8dcddc

View file

@ -54,26 +54,16 @@
[/item]
#enddef
#define PRESTART_FILTER_EFFECT FILTER EFFECT
# Apply an image mod to filter-selected units at prestart time
[event]
name=prestart
first_time_only=yes
[object]
silent=yes
[filter]
{FILTER}
[/filter]
[effect]
apply_to=image_mod
add={EFFECT}
[/effect]
[/object]
[/event]
#enddef
#define TEAM_COLOR_OVERRIDE FILTER TEAMCOLOR
# Override the team color of filtered units.
# This is an example of how to use PRESTART_FILTER_EFFECT.
{PRESTART_FILTER_EFFECT {FILTER} "RC(magenta>{TEAMCOLOR})"}
[object]
silent=yes
[filter]
{FILTER}
[/filter]
[effect]
apply_to=image_mod
add=RC(magenta>{TEAMCOLOR})
[/effect]
[/object]
#enddef