Jump to content

Lycan first skill bug.


Go to solution Solved by Speachless,

Recommended Posts

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Premium
  • Solution

Solved : char_skill.cpp

bool CHARACTER::CanUseSkill(DWORD dwSkillVnum) const
{
    if (0 == dwSkillVnum) return false;


    if (0 < GetSkillGroup())
    {
        const int SKILL_COUNT = 6;
        static const DWORD SkillList[JOB_MAX_NUM][SKILL_GROUP_MAX_NUM][SKILL_COUNT] =
        {
            {{1, 2,    3, 4, 5, 6}, {16, 17, 18, 19, 20, 21}},
            {{31, 32, 33, 34, 35, 36}, {46, 47, 48, 49, 50, 51}},
            {{61, 62, 63, 64, 65, 66}, {76, 77, 78, 79, 80, 81}},
            {{91, 92, 93, 94, 95, 96}, {106, 107, 108, 109, 110, 111}},
            {{171, 172, 173, 174, 175, 176},},
        };


        const DWORD* pSkill = SkillList[ GetJob() ][ GetSkillGroup()-1 ];
        for (int i=0 ; i < SKILL_COUNT ; ++i)
        {
            if (pSkill[i] == dwSkillVnum) return true;
        }
    }

Rewrite 

  {{171, 172, 173, 174, 175, 176},},

 with   

{{170, 171, 172, 173, 174, 175},},
 
 
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.