From 99018c5090ee9089309507e835a88253bc880d8e Mon Sep 17 00:00:00 2001 From: Casey Raethke Date: Wed, 24 Nov 2021 21:30:00 -0600 Subject: [PATCH] Add version check for RAP (Fixes #56) --- libs/StatLogic-1.0/StatLogic-1.0.lua | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/libs/StatLogic-1.0/StatLogic-1.0.lua b/libs/StatLogic-1.0/StatLogic-1.0.lua index 2bb8ba2..4c55927 100644 --- a/libs/StatLogic-1.0/StatLogic-1.0.lua +++ b/libs/StatLogic-1.0/StatLogic-1.0.lua @@ -3318,16 +3318,15 @@ end -----------------------------------]] local RAPPerAgi = { - 1, 0, 1, 1, 0, 0, 0, 0, 0, - --["WARRIOR"] = 1, - --["PALADIN"] = 0, - --["HUNTER"] = 1, - --["ROGUE"] = 1, - --["PRIEST"] = 0, - --["SHAMAN"] = 0, - --["MAGE"] = 0, - --["WARLOCK"] = 0, - --["DRUID"] = 0, + [ClassNameToID["WARRIOR"]] = 1, + [ClassNameToID["PALADIN"]] = 0, + [ClassNameToID["HUNTER"]] = tocversion >= 20100 and 1 or 2, + [ClassNameToID["ROGUE"]] = 1, + [ClassNameToID["PRIEST"]] = 0, + [ClassNameToID["SHAMAN"]] = 0, + [ClassNameToID["MAGE"]] = 0, + [ClassNameToID["WARLOCK"]] = 0, + [ClassNameToID["DRUID"]] = 0, } function StatLogic:GetRAPPerAgi(class)