Add fire damage to Garak's weapon as a blessing result

Overhaul the way the specials are filtered
This commit is contained in:
Piotr Cychowski 2008-01-17 12:47:32 +00:00
parent 0373bdfe64
commit d7fe5cc9da

View file

@ -50,6 +50,62 @@
{ABILITY_STEADFAST}
[/abilities]
[/effect]
[effect]
#textdomain wesnoth
apply_to=attack
range=melee
[set_specials]
[berserk]
id=berserk
name= _ "berserk"
description= _ "Berserk:
Whether used offensively or defensively, this attack presses the engagement until one of the combatants is slain, or 30 rounds of attacks have occurred."
value=30
[filter_opponent]
description=Zur
[or]
description=Grak
[/or]
[/filter_opponent]
[/berserk]
#ifdef HARD
#elseif
[chance_to_hit]
id=magical
name= _ "magical"
description= _ "Magical:
This attack always has a 70% chance to hit regardless of the defensive ability of the unit being attacked."
value=70
cumulative=no
[filter_opponent]
description=Zur
[or]
description=Grak
[/or]
[/filter_opponent]
[/chance_to_hit]
[firststrike]
id=firststrike
name= _ "firststrike"
description= _ "First Strike:
This unit always strikes first with this attack, even if they are defending."
[filter_opponent]
description=Zur
[or]
description=Grak
[/or]
[/filter_opponent]
[/firststrike]
#endif
mode=append
[/set_specials]
[/effect]
#textdomain wesnoth-utbs
[effect]
apply_to=attack
range=melee
set_type=fire
[/effect]
[/object]
[/event]
@ -95,35 +151,6 @@
[/and]
[then]
{VARIABLE challenged $second_unit.description}
{VARIABLE garak_x $x1}
{VARIABLE garak_y $y1}
[store_unit]
[filter]
description=Garak
[/filter]
variable=garak_duel
kill=no
[/store_unit]
[object]
id=$challenged
silent=yes
[filter]
description=Garak
[/filter]
[effect]
apply_to=attack
range=melee
[set_specials]
{WEAPON_SPECIAL_BERSERK}
#ifdef HARD
#elseif
{WEAPON_SPECIAL_MAGICAL}
{WEAPON_SPECIAL_FIRSTSTRIKE}
#endif
mode=append
[/set_specials]
[/effect]
[/object]
[if]
[variable]
name=challenged
@ -199,13 +226,6 @@
[filter]
description=$challenged
[/filter]
{VARIABLE_OP garak_duel.experience add 16}
[unstore_unit]
variable=garak_duel
x=$garak_x
y=$garak_y
advance=yes
[/unstore_unit]
[if]
[variable]
name=second_unit.description
@ -218,9 +238,6 @@
{VARIABLE zur_challenged 1}
[/else]
[/if]
{CLEAR_VARIABLE garak_duel}
{CLEAR_VARIABLE garak_x}
{CLEAR_VARIABLE garak_y}
{CLEAR_VARIABLE challenged}
[/event]
[/then]
@ -246,35 +263,6 @@
[/and]
[then]
{VARIABLE challenged $unit.description}
{VARIABLE garak_x $x1}
{VARIABLE garak_y $y1}
[store_unit]
[filter]
description=Garak
[/filter]
variable=garak_duel
kill=no
[/store_unit]
[object]
id=challenge_duel
silent=yes
[filter]
description=Garak
[/filter]
[effect]
apply_to=attack
range=melee
[set_specials]
{WEAPON_SPECIAL_BERSERK}
#ifdef HARD
#elseif
{WEAPON_SPECIAL_MAGICAL}
{WEAPON_SPECIAL_FIRSTSTRIKE}
#endif
mode=append
[/set_specials]
[/effect]
[/object]
[if]
[variable]
name=challenged
@ -350,13 +338,6 @@
[filter]
description=$challenged
[/filter]
{VARIABLE_OP garak_duel.experience add 16}
[unstore_unit]
variable=garak_duel
x=$garak_x
y=$garak_y
advance=yes
[/unstore_unit]
[if]
[variable]
name=second_unit.description
@ -369,9 +350,6 @@
{VARIABLE zur_challenged 1}
[/else]
[/if]
{CLEAR_VARIABLE garak_duel}
{CLEAR_VARIABLE garak_x}
{CLEAR_VARIABLE garak_y}
{CLEAR_VARIABLE challenged}
[/event]
[/then]