1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-17 05:15:36 +00:00

Fixed glitch in pool byes receiving 2 points when you have at least 1 pool

win. Poolrounds was not returning what I was expecting.
This commit is contained in:
2017-01-19 00:41:34 -05:00
parent e77b555069
commit 96dc5407da
4 changed files with 19 additions and 19 deletions

View File

@@ -67,17 +67,17 @@ class PoolBracketPlacementPoints
end
def onePool
poolOrder = @wrestler.weight.poolOrder(1)
if @wrestler == poolOrder.first
return firstPlace
elsif @wrestler == poolOrder.second
return secondPlace
elsif @wrestler == poolOrder.third
return thirdPlace
elsif @wrestler == poolOrder.fourth
return fourthPlace
end
return 0
poolOrder = @wrestler.weight.poolOrder(1)
if @wrestler == poolOrder.first
return firstPlace
elsif @wrestler == poolOrder.second
return secondPlace
elsif @wrestler == poolOrder.third
return thirdPlace
elsif @wrestler == poolOrder.fourth
return fourthPlace
end
return 0
end
def finalMatchPoints