Skip to content

Commit

Permalink
UtBS: Fixed a bug in the formation ability
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ln-zookeeper committed May 7, 2018
1 parent add4ea3 commit 083066b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions data/campaigns/Under_the_Burning_Suns/utils/abilities.cfg
Expand Up @@ -571,79 +571,79 @@ _"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

[filter_adjacent]
ability=formation
is_enemy=no
count=1
count=1-5
[/filter_adjacent]
[/filter_opponent]
[/chance_to_hit]
[chance_to_hit]
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

[filter_adjacent]
ability=formation
is_enemy=no
count=2
count=2-5
[/filter_adjacent]
[/filter_opponent]
[/chance_to_hit]
[chance_to_hit]
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

[filter_adjacent]
ability=formation
is_enemy=no
count=3
count=3-5
[/filter_adjacent]
[/filter_opponent]
[/chance_to_hit]
[chance_to_hit]
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

[filter_adjacent]
ability=formation
is_enemy=no
count=4
count=4-5
[/filter_adjacent]
[/filter_opponent]
[/chance_to_hit]
[chance_to_hit]
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
Expand Down

0 comments on commit 083066b

Please sign in to comment.