Fix of the Regex expression to heal after the battle (#1676)

This commit is contained in:
JackRainy 2020-01-12 23:24:00 +02:00 committed by Yair Morgenstern
parent 08218b954e
commit de7a369131

View file

@ -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