Jump to content
  • 0

Add skill check on src (Sarah Card)


lzm

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  08/12/17
  • Last Seen:  

Hi,

I try to add exception for few skills to Sarah Card effect. I try to add something like this:

	switch (bl->type) {
		case BL_PC:
			{
				struct map_session_data *sd = BL_CAST(BL_PC, bl);
				if (!sd)
					return;
				
				dmg_ori = dmg_new = d->damage + d->damage2;
				if (sd->bonus.absorb_dmg_maxhp) {
					if(skill_id) {
						switch(skill_id) {
							case RA_CLUSTERBOMB:
							case SJ_NOVAEXPLOSING:
								break;
						}
					} else {
						int hp = sd->bonus.absorb_dmg_maxhp * status_get_max_hp(bl) / 100;
						if (dmg_ori > hp)
							dmg_new = dmg_ori - hp;
					}
				}
			}
			break;
	}

But I don't know how to register skill_id. How to add that check? Or is any other better method to achieve this?

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...