|
|
|
|
@ -754,9 +754,13 @@ open class HandHistory : RealmObject(), Deletable, RowRepresentable, Filterable, |
|
|
|
|
return cards.filter { it.isSuitWildCard } |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
val largestWonPot: WonPot? |
|
|
|
|
private val largestWonPot: WonPot? |
|
|
|
|
get() { |
|
|
|
|
return this.winnerPots.maxBy { it.amount } |
|
|
|
|
return if (this.winnerPots.isNotEmpty()) { // needed, otherwise maxBy crashes |
|
|
|
|
this.winnerPots.maxBy { it.amount } |
|
|
|
|
} else { |
|
|
|
|
null |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |