Jump to content
  • 0

PA_SACRIFICE not end HP


Scofield

Question


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.03
  • Content Count:  265
  • Reputation:   11
  • Joined:  01/11/13
  • Last Seen:  

I wonder where I change the src to leave the skill Martyr's Reckoning, not to lose HP.

also would like to know what you want siginifa this line in src

 

//FIXME: invalid return type!
            //return (damage_lv)skill_attack(BF_WEAPON,src,src,target,PA_SACRIFICE,skilllv,tick,0); 

}

    if (sc)
    {
        if (sc->data[SC_SACRIFICE])
        {
            int skilllv = sc->data[SC_SACRIFICE]->val1;

            if( --sc->data[SC_SACRIFICE]->val2 <= 0 )
                status_change_end(src, SC_SACRIFICE,-1);

            status_zap(src, sstatus->max_hp*9/100, 0);//Damage to self is always 9%

            //FIXME: invalid return type!
            return (damage_lv)skill_attack(BF_WEAPON,src,src,target,PA_SACRIFICE,skilllv,tick,0); << That
        }
Edited by cumbe11
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...