Make the sword of fire replace the existing sword attack...
...instead of adding a new one.
This commit is contained in:
parent
10297b3376
commit
31d6f65050
1 changed files with 32 additions and 24 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue