mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 19:37:50 +00:00
refactor test #6 to use [do_command]
This commit is contained in:
parent
1f3b23ea1a
commit
654c066550
@ -22,14 +22,22 @@
|
||||
y = {Y}
|
||||
random_traits=false
|
||||
[/unit]
|
||||
[issue_attack_command]
|
||||
x1 = "$({X} + 1)"
|
||||
y1 = {Y}
|
||||
x2 = {X}
|
||||
y2 = {Y}
|
||||
attacker_weapon=0
|
||||
defender_weapon=0
|
||||
[/issue_attack_command]
|
||||
[do_command]
|
||||
[attack]
|
||||
weapon = 0
|
||||
defender_weapon = 0
|
||||
attacker_type = Orcish Grunt
|
||||
defender_type = Elvish Archer
|
||||
[source]
|
||||
x = "$({X} + 1)"
|
||||
y = {Y}
|
||||
[/source]
|
||||
[destination]
|
||||
x = {X}
|
||||
y = {Y}
|
||||
[/destination]
|
||||
[/attack]
|
||||
[/do_command]
|
||||
[store_unit]
|
||||
[filter]
|
||||
id = {ID}
|
||||
|
Loading…
x
Reference in New Issue
Block a user