UtBS: Fixed a bug in the formation ability
If a unit had for example 3 other formation units adjacent but only needed 1 to reach 70% defense, it didn't receive any benefit at all (as the corresponding [chance_to_hit] tag remained inactive). Spotted and fix provided by beetlenaut.
This commit is contained in:
parent
add4ea3d95
commit
083066bff2
1 changed files with 13 additions and 13 deletions
|
@ -571,7 +571,7 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
|
|||
description=""
|
||||
sub=10
|
||||
[filter_base_value]
|
||||
greater_than=30
|
||||
greater_than_equal_to=40
|
||||
[/filter_base_value]
|
||||
[filter_opponent]
|
||||
ability=formation
|
||||
|
@ -579,7 +579,7 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
|
|||
[filter_adjacent]
|
||||
ability=formation
|
||||
is_enemy=no
|
||||
count=1
|
||||
count=1-5
|
||||
[/filter_adjacent]
|
||||
[/filter_opponent]
|
||||
[/chance_to_hit]
|
||||
|
@ -587,9 +587,9 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
|
|||
id=formation_enemy_2
|
||||
name=""
|
||||
description=""
|
||||
sub=20
|
||||
sub=10
|
||||
[filter_base_value]
|
||||
greater_than=40
|
||||
greater_than_equal_to=50
|
||||
[/filter_base_value]
|
||||
[filter_opponent]
|
||||
ability=formation
|
||||
|
@ -597,7 +597,7 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
|
|||
[filter_adjacent]
|
||||
ability=formation
|
||||
is_enemy=no
|
||||
count=2
|
||||
count=2-5
|
||||
[/filter_adjacent]
|
||||
[/filter_opponent]
|
||||
[/chance_to_hit]
|
||||
|
@ -605,9 +605,9 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
|
|||
id=formation_enemy_3
|
||||
name=""
|
||||
description=""
|
||||
sub=30
|
||||
sub=10
|
||||
[filter_base_value]
|
||||
greater_than=50
|
||||
greater_than_equal_to=60
|
||||
[/filter_base_value]
|
||||
[filter_opponent]
|
||||
ability=formation
|
||||
|
@ -615,7 +615,7 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
|
|||
[filter_adjacent]
|
||||
ability=formation
|
||||
is_enemy=no
|
||||
count=3
|
||||
count=3-5
|
||||
[/filter_adjacent]
|
||||
[/filter_opponent]
|
||||
[/chance_to_hit]
|
||||
|
@ -623,9 +623,9 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
|
|||
id=formation_enemy_4
|
||||
name=""
|
||||
description=""
|
||||
sub=40
|
||||
sub=10
|
||||
[filter_base_value]
|
||||
greater_than=60
|
||||
greater_than_equal_to=70
|
||||
[/filter_base_value]
|
||||
[filter_opponent]
|
||||
ability=formation
|
||||
|
@ -633,7 +633,7 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
|
|||
[filter_adjacent]
|
||||
ability=formation
|
||||
is_enemy=no
|
||||
count=4
|
||||
count=4-5
|
||||
[/filter_adjacent]
|
||||
[/filter_opponent]
|
||||
[/chance_to_hit]
|
||||
|
@ -641,9 +641,9 @@ _"This unit is capable of distracting opponents, allowing allied units to trespa
|
|||
id=formation_enemy_5
|
||||
name=""
|
||||
description=""
|
||||
sub=50
|
||||
sub=10
|
||||
[filter_base_value]
|
||||
greater_than=70
|
||||
greater_than_equal_to=80
|
||||
[/filter_base_value]
|
||||
[filter_opponent]
|
||||
ability=formation
|
||||
|
|
Loading…
Add table
Reference in a new issue