diff --git a/Assets/PerfectWorld/Scripts/Skills/EC_HostSkillModel.cs b/Assets/PerfectWorld/Scripts/Skills/EC_HostSkillModel.cs index ab724c0bf2..c224b26d1b 100644 --- a/Assets/PerfectWorld/Scripts/Skills/EC_HostSkillModel.cs +++ b/Assets/PerfectWorld/Scripts/Skills/EC_HostSkillModel.cs @@ -83,13 +83,13 @@ namespace BrewMonster.Scripts.Skills while ((curID = ElementSkill.NextSkill(curID)) != 0) { ElementSkill pSkill = ElementSkill.Create(curID, 1); - /*int cls = pSkill.GetCls(); - int playerCls = g_pGame.GetGameRun().GetHostPlayer().GetProfession(); + int cls = pSkill.GetCls(); + int playerCls = GameController.Instance.GetHostPlayer().GetProfession(); bool isSameClass = (cls == playerCls || cls == 255); bool isProvidedByNPC = npcSkills.Contains(curID); - if (isSameClass && isProvidedByNPC) + /*if (isSameClass && isProvidedByNPC) { m_allProfSkills[curID] = pSkill; if (!m_allRankProfSkills.ContainsKey(pSkill.GetRank())) diff --git a/Assets/Scripts/CECHostPlayer.cs b/Assets/Scripts/CECHostPlayer.cs index 0b9dd521b4..a24997e387 100644 --- a/Assets/Scripts/CECHostPlayer.cs +++ b/Assets/Scripts/CECHostPlayer.cs @@ -311,7 +311,7 @@ public class CECHostPlayer : CECPlayer return true; } - + public int GetProfession(){ return m_iProfession; } private void HandleJump() { if (isGrounded)