|
|
|
@ -479,7 +479,11 @@ open class HandHistory : RealmObject(), Deletable, RowRepresentable, Filterable, |
|
|
|
val heroWins: Boolean? |
|
|
|
val heroWins: Boolean? |
|
|
|
get() { |
|
|
|
get() { |
|
|
|
return this.heroIndex?.let { heroIndex -> |
|
|
|
return this.heroIndex?.let { heroIndex -> |
|
|
|
heroIndex == this.largestWonPot?.position |
|
|
|
this.largestWonPot?.let { pot -> |
|
|
|
|
|
|
|
heroIndex == pot.position |
|
|
|
|
|
|
|
} ?: run { null } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// heroIndex == this.largestWonPot?.position |
|
|
|
// this.winnerPots.any { it.position == heroIndex } |
|
|
|
// this.winnerPots.any { it.position == heroIndex } |
|
|
|
} ?: run { |
|
|
|
} ?: run { |
|
|
|
null |
|
|
|
null |
|
|
|
|