mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-30 07:21:34 -04:00
Fix of the Regex expression to heal after the battle (#1676)
This commit is contained in:
parent
08218b954e
commit
de7a369131
@ -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…
x
Reference in New Issue
Block a user