This commit is contained in:
Steve Cotton 2021-04-10 11:21:41 +02:00 committed by Steve Cotton
parent ebac0830cb
commit 17cbc7c03e
3 changed files with 10 additions and 12 deletions

View file

@ -244,7 +244,7 @@
delayed_variable_substitution=yes
{VARIABLE pass_test "$($pass_test + 1)"}
[/event]
{VARIABLE pass_test 1}
[/event]
[event]

View file

@ -1,3 +1,4 @@
# wmllint: no translatables
{GENERIC_UNIT_TEST "event_test_auto_variables_side_turn" (
[event]
@ -245,13 +246,8 @@
[event]
name=start
# Make sure the attacks hit
[modify_unit]
[filter]
[/filter]
[attack]
accuracy=100
[/attack]
[/modify_unit]
{FORCE_CHANCE_TO_HIT (id=bob) (id=alice) 100 ()}
{FORCE_CHANCE_TO_HIT (id=alice) (id=bob) 100 ()}
[do_command]
[move]
x=7,13

View file

@ -1,3 +1,4 @@
# wmllint: no translatables
{GENERIC_UNIT_TEST event_test_filter_condition (
[event]
@ -108,6 +109,8 @@
x,y=7,3
[/from]
[/recruit]
[/do_command]
[do_command]
[recruit]
type=Woodsman
x,y=15,8
@ -148,13 +151,12 @@
{GENERIC_UNIT_TEST event_test_filter_attack (
[event]
name=turn 1
# Make sure the attacks hit
{FORCE_CHANCE_TO_HIT (id=bob) (id=alice) 100 ()}
{FORCE_CHANCE_TO_HIT (id=alice) (id=bob) 100 ()}
[modify_unit]
[filter]
[/filter]
# Make sure the attacks hit
[attack]
accuracy=100
[/attack]
# Make sure they don't die during the attacks
[status]
invulnerable=yes