Stats points b4 class system (#991)

* Click listener for BulkAllocateStatsDialog is disabled until user reaches level 10

* Click listener for BulkAllocateStatsDialog is disabled until user reaches level 10

* Properly placed conditional

* extra line removed :/
This commit is contained in:
Adrian Mohnacs 2018-06-14 03:29:03 -07:00 committed by Phillip Thelen
parent a0083e4b3c
commit ed38ca6000

View file

@ -122,7 +122,10 @@ class StatsFragment: BaseMainFragment() {
statsAllocationButton.setOnClickListener {
if (user?.stats?.points ?: 0 > 0) {
showBulkAllocateDialog()
val lvl = user?.stats?.getLvl()
if (lvl != null && lvl >= 10) {
showBulkAllocateDialog()
}
}
}
}