mirror of
https://github.com/yairm210/Unciv.git
synced 2025-10-02 16:31:15 -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()
|
if (defender.isDefeated()
|
||||||
&& defender is MapUnitCombatant
|
&& defender is MapUnitCombatant
|
||||||
&& attacker 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()) {
|
for (unique in attacker.unit.getUniques()) {
|
||||||
val match = regex.matchEntire(unique)
|
val match = regex.matchEntire(unique)
|
||||||
if (match == null) continue
|
if (match == null) continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user