Fix of the Regex expression to heal after the battle (#1676)
This commit is contained in:
parent
08218b954e
commit
de7a369131
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ object Battle {
|
|||
if (defender.isDefeated()
|
||||
&& defender is MapUnitCombatant
|
||||
&& attacker is MapUnitCombatant) {
|
||||
val regex = Regex("""Heals \[(\d*)\] damage if it kills a unit"""")
|
||||
val regex = Regex("""Heals \[(\d*)\] damage if it kills a unit""")
|
||||
for (unique in attacker.unit.getUniques()) {
|
||||
val match = regex.matchEntire(unique)
|
||||
if (match == null) continue
|
||||
|
|
Loading…
Reference in a new issue