diff --git a/data/test/scenarios/wml_tests/UnitsWML/AbilitiesWML/damage/damage_multiply_fraction.cfg b/data/test/scenarios/wml_tests/UnitsWML/AbilitiesWML/damage/damage_multiply_fraction.cfg index 1b4cd52ce5174..1f85511f3d62c 100644 --- a/data/test/scenarios/wml_tests/UnitsWML/AbilitiesWML/damage/damage_multiply_fraction.cfg +++ b/data/test/scenarios/wml_tests/UnitsWML/AbilitiesWML/damage/damage_multiply_fraction.cfg @@ -31,3 +31,33 @@ [/event] ) SIDE2_LEADER="Elvish Archer"} #endif + +##### +# API(s) being tested: [damage]value= +## +# Actions: +# Give the leaders a damage ability with both the value and multiply attributes(value must be specified in macro) +# Have the side 1 leader attack the side 2 leader with both its weapons +## +# Expected end state: +# The side 1 leader has 2 weapons both of which have 8 damage (4*1.9999, the .9999 is rounded up) +##### +{COMMON_KEEP_A_B_UNIT_TEST "damage_multiply_3_digits_after_the_decimal_point" ( + [event] + name = start + + [modify_unit] + [filter] + [/filter] + [effect] + apply_to = new_ability + [abilities] + {TEST_ABILITY damage 4 (multiply=1.9999) SELF=yes} + [/abilities] + [/effect] + [/modify_unit] + + {ATTACK_AND_VALIDATE 8 (DAMAGE_VALUE=) WEAPON_COUNT=2} + {SUCCEED} + [/event] +) SIDE2_LEADER="Elvish Archer"} diff --git a/wml_test_schedule b/wml_test_schedule index 9d1bb64e457af..97172f88a50a6 100644 --- a/wml_test_schedule +++ b/wml_test_schedule @@ -861,6 +861,7 @@ 0 damage_multiply 0 damage_multiply_divide 0 damage_multiply_fraction +0 damage_multiply_3_digits_after_the_decimal_point 0 damage_no_value 0 damage_sub 0 damage_sub_divide