Mute some warning messages in {FORCE_CHANCE_TO_HIT }.
This commit is contained in:
parent
2bc198b8fd
commit
af4a01db8c
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue