Mute some warning messages in {FORCE_CHANCE_TO_HIT }.

This commit is contained in:
Anonymissimus 2011-03-13 21:46:43 +00:00
parent 2bc198b8fd
commit af4a01db8c

View file

@ -565,6 +565,12 @@
[then]
{FOREACH unit.attack i}
[if]
#This is to mute a warning message about retrieving a member of non-existant wml container.
[variable]
name=unit.attack[$i].specials.length
greater_than=0
[/variable]
[variable]
name=unit.attack[$i].specials.chance_to_hit.length
greater_than=0
@ -643,6 +649,11 @@
[then]
{FOREACH second_unit.attack i}
[if]
[variable]
name=second_unit.attack[$i].specials.length
greater_than=0
[/variable]
[variable]
name=second_unit.attack[$i].specials.chance_to_hit.length
greater_than=0