add a test case for 'cumulative=yes'
this test is added for verify what cumulative=yes work in same time what 'add' and 'sub' and what using of these attributes in[leadership] don't be changed, only using of cumulative work anew like in 1.14
This commit is contained in:
parent
f6c9561149
commit
856aafc8d5
1 changed files with 15 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
# This unit test is used for verify what 'add' and 'sub' attributes work in [leadership] abilities
|
||||
# but also what 'cumulative=yes' is fixed.
|
||||
{GENERIC_UNIT_TEST "test_add_in_leadership_abilities" (
|
||||
[event]
|
||||
name=start
|
||||
|
@ -14,17 +15,29 @@
|
|||
[effect]
|
||||
apply_to=new_ability
|
||||
[abilities]
|
||||
[leadership]
|
||||
id=leadership_no_cum
|
||||
value=25
|
||||
cumulative=no
|
||||
affect_self=yes
|
||||
[/leadership]
|
||||
[leadership]
|
||||
id=leadership_pos
|
||||
add=25
|
||||
cumulative=no
|
||||
affect_self=yes
|
||||
[/leadership]
|
||||
[leadership]
|
||||
id=leadership_cum
|
||||
value=25
|
||||
cumulative=yes
|
||||
affect_self=yes
|
||||
[/leadership]
|
||||
[attacks]
|
||||
value=1
|
||||
[/attacks]
|
||||
[damage]
|
||||
value=60
|
||||
value=12
|
||||
[/damage]
|
||||
[chance_to_hit]
|
||||
value=100
|
||||
|
@ -73,7 +86,7 @@
|
|||
[/filter]
|
||||
variable=b
|
||||
[/store_unit]
|
||||
{ASSERT ({VARIABLE_CONDITIONAL b.hitpoints equals 25})}
|
||||
{ASSERT ({VARIABLE_CONDITIONAL b.hitpoints equals 79})}
|
||||
{SUCCEED}
|
||||
[/event]
|
||||
)}
|
||||
|
|
Loading…
Add table
Reference in a new issue