Jump to content
  • 0

Bug Skill Epiclesis


leondedios

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  10/02/13
  • Last Seen:  

Good day 
I need help with skill Epiclesis of AB, / pat 
I have a problem with the skill Epiclesis must understand that according to regenerate hp every 3 seconds and that is exactly the problem that my users accuse regenerates the correct% but not so in the correct time intervals. 
I hope some of you can help, thanks in advance

 

screenroh-renacido051-872494.jpg

 

Deputy skill lines in src/map/skill.c

case UNT_EPICLESIS:
            if( bl->type == BL_PC && !battle_check_undead(tstatus->race, tstatus->def_ele) && tstatus->race != RC_DEMON )
            {
                if( ++sg->val2 % 3 == 0 ) {
                    int hp, sp;
                    switch( sg->skill_lv ) {
                        case 1: case 2: hp = 3; sp = 2; break;
                        case 3: case 4: hp = 4; sp = 3; break;
                        case 5: default: hp = 5; sp = 4; break;
                    }
                    hp = tstatus->max_hp * hp / 100;
                    sp = tstatus->max_sp * sp / 100;
                    status_heal(bl, hp, sp, 2);
                    sc_start(ss, bl, type, 100, sg->skill_lv, (sg->interval * 3) + 100); 
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...