Skip to content

Commit

Permalink
Merge pull request #86 from mcc1/develop
Browse files Browse the repository at this point in the history
Check against class id instead of name
  • Loading branch information
DanSheps committed Nov 10, 2018
2 parents 9a2a94f + 51731f3 commit 52dd0d2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions BeStride_Logic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ end
-- +----------+ --
function BeStride_Logic:IsDeathKnight()
-- Check for DeathKnight
if string.lower(playerTable["class"]["name"]) == "death knight" then
if playerTable["class"]["id"] == 6 then
return true
else
return false
Expand All @@ -885,7 +885,7 @@ end

function BeStride_Logic:IsDemonHunter()
-- Check for DemonHunter
if string.lower(playerTable["class"]["name"]) == "demon hunter" then
if playerTable["class"]["id"] == 12 then
return true
else
return false
Expand All @@ -894,7 +894,7 @@ end

function BeStride_Logic:IsDruid()
-- Check for Druid
if string.lower(playerTable["class"]["name"]) == "druid" then
if playerTable["class"]["id"] == 11 then
return true
else
return false
Expand All @@ -903,7 +903,7 @@ end

function BeStride_Logic:IsMage()
-- Check for Mage
if string.lower(playerTable["class"]["name"]) == "mage" then
if playerTable["class"]["id"] == 8 then
return true
else
return false
Expand All @@ -912,7 +912,7 @@ end

function BeStride_Logic:IsMonk()
-- Check for Monk
if string.lower(playerTable["class"]["name"]) == "monk" then
if playerTable["class"]["id"] == 10 then
return true
else
return false
Expand All @@ -921,7 +921,7 @@ end

function BeStride_Logic:IsPaladin()
-- Check for Paladin
if string.lower(playerTable["class"]["name"]) == "paladin" then
if playerTable["class"]["id"] == 2 then
return true
else
return false
Expand All @@ -930,7 +930,7 @@ end

function BeStride_Logic:IsPriest()
-- Check for Priest
if string.lower(playerTable["class"]["name"]) == "priest" then
if playerTable["class"]["id"] == 5 then
return true
else
return false
Expand All @@ -939,7 +939,7 @@ end

function BeStride_Logic:IsRogue()
-- Check for Rogue
if string.lower(playerTable["class"]["name"]) == "rogue" then
if playerTable["class"]["id"] == 4 then
return true
else
return false
Expand All @@ -948,7 +948,7 @@ end

function BeStride_Logic:IsShaman()
-- Check for Shaman
if string.lower(playerTable["class"]["name"]) == "shaman" then
if playerTable["class"]["id"] == 7 then
return true
else
return false
Expand Down
10 changes: 5 additions & 5 deletions localization/zh-TW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ if GetLocale() == "zhTW" then
}
},
Settings = {
EnableNew = "當學會新作其實自動啟用它們",
EnableNew = "當學會新坐騎時自動啟用它們",
EmptyRandom = "如果沒有可以使用的已選擇坐騎時隨機使用",
RemountAfterDismount = "下馬後立刻重新上馬",
NoDismountWhileFlying = "在飛行時不解除坐騎. 你必須要降落或者是施放一個法術 (假使在選項中啟用後)",
Expand Down Expand Up @@ -169,10 +169,10 @@ if GetLocale() == "zhTW" then
}
},
Profiles = {
CreateNew = "Create new Profile:",
Current = "Current Profile:",
CopyFrom = "Copy settings from:",
Delete = "Delete profile:"
CreateNew = "創建新的設定檔:",
Current = "當前設定檔:",
CopyFrom = "複製設定檔:",
Delete = "刪除設定檔:"
}
}
}
Expand Down

0 comments on commit 52dd0d2

Please sign in to comment.