max_value works in 1.19+
This commit is contained in:
parent
63e8b69236
commit
1b47cea9c5
2 changed files with 0 additions and 35 deletions
|
@ -1,34 +0,0 @@
|
|||
# wmllint: no translatables
|
||||
|
||||
#####
|
||||
# API(s) being tested: [chance_to_hit]value=
|
||||
##
|
||||
# Actions:
|
||||
# Give the leaders a chance_to_hit ability with both the value and max_value attributes
|
||||
# Have the side 1 leader attack the side 2 leader with both its weapons
|
||||
##
|
||||
# Expected end state:
|
||||
# The side 1 leader's first weapon doesn't strike 100 times
|
||||
# The side 1 leader's second weapon doesn't strike 100 times
|
||||
#####
|
||||
{COMMON_KEEP_A_B_UNIT_TEST "chance_to_hit_max_value" (
|
||||
[event]
|
||||
name = start
|
||||
|
||||
{SET_HP VALUE=1000}
|
||||
|
||||
[modify_unit]
|
||||
[filter]
|
||||
[/filter]
|
||||
[effect]
|
||||
apply_to = new_ability
|
||||
[abilities]
|
||||
{TEST_ABILITY attacks 100 () SELF=yes}
|
||||
{TEST_ABILITY chance_to_hit 100 (max_value=10) SELF=yes}
|
||||
[/abilities]
|
||||
[/effect]
|
||||
[/modify_unit]
|
||||
[/event]
|
||||
|
||||
{CHECK_STRIKES "100,100" ({SUCCEED}) COMPARE=numerical_not_equals (CHANCE_TO_HIT=)}
|
||||
)}
|
|
@ -801,7 +801,6 @@
|
|||
0 chance_to_hit_two_cumulative_no_unique_id
|
||||
0 chance_to_hit_two_cumulative_mixed_same_id
|
||||
0 chance_to_hit_two_cumulative_mixed_unique_id
|
||||
0 chance_to_hit_max_value
|
||||
0 chance_to_hit_overwrite_specials_one_side
|
||||
0 chance_to_hit_overwrite_specials_both_sides
|
||||
0 chance_to_hit_overwrite_specials_two_both_sides
|
||||
|
|
Loading…
Add table
Reference in a new issue