Make the sword of fire replace the existing sword attack...

...instead of adding a new one.
This commit is contained in:
Lari Nieminen 2007-12-25 00:02:17 +00:00
parent 10297b3376
commit 31d6f65050

View file

@ -58,7 +58,8 @@
[/then]
[effect]
apply_to=new_attack
name=flaming sword
# the name is intentionally "sword" so that the existing sword animation of the unit will be used
name=sword
description= _ "flaming sword"
icon=attacks/sword-flaming.png
type=fire
@ -70,31 +71,38 @@
number=4
[/effect]
# this makes sure that any existing sword attack gets removed
[effect]
apply_to=new_animation
[attack_anim]
[attack_filter]
name=flaming sword
[/attack_filter]
start_time=-200
[if]
hits=yes
[frame]
duration=350
sound=fire.wav
[/frame]
[/if]
[else]
hits=no
[frame]
duration=350
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[/attack_anim]
apply_to=remove_attacks
range=melee
type=blade
[/effect]
# [effect]
# apply_to=new_animation
# [attack_anim]
# [attack_filter]
# name=flaming sword
# [/attack_filter]
#
# start_time=-200
#
# [if]
# hits=yes
# [frame]
# duration=350
# sound=fire.wav
# [/frame]
# [/if]
# [else]
# hits=no
# [frame]
# duration=350
# sound={SOUND_LIST:MISS}
# [/frame]
# [/else]
# [/attack_anim]
# [/effect]
[/object]
[/command]
[/option]