From c01bc8693a27320daf6f970bcfd666cdbe09290e Mon Sep 17 00:00:00 2001 From: atomaka Date: Sun, 21 Aug 2011 00:03:50 -0400 Subject: [PATCH] Only store Valor Points if level is 85. --- ChoreTracker.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ChoreTracker.lua b/ChoreTracker.lua index 01ad7b5..5f34753 100644 --- a/ChoreTracker.lua +++ b/ChoreTracker.lua @@ -19,7 +19,10 @@ end function core:StoreValorPoints() local _,_,_,earnedThisWeek = GetCurrencyInfo(396) local name = UnitName('player') + local level = UnitLevel('player') - self.db.profile.valorPoints[name] = earnedThisWeek - print('Storing',earnedThisWeek,'for',name) + if(level == 85) then + self.db.profile.valorPoints[name] = earnedThisWeek + print('Storing',earnedThisWeek,'for',name) + end end \ No newline at end of file