Jump to content

Question

5 answers to this question

Recommended Posts

Posted (edited)

Search this in src/map/battle.c:

if (bl->type == BL_PC) {
		sd=(struct map_session_data *)bl;
		//Special no damage states
		if(flag&BF_WEAPON && sd->special_state.no_weapon_damage)
			DAMAGE_SUBRATE(sd->special_state.no_weapon_damage)

		if(flag&BF_MAGIC && sd->special_state.no_magic_damage)
			DAMAGE_SUBRATE(sd->special_state.no_magic_damage)

		if(flag&BF_MISC && sd->special_state.no_misc_damage)
			DAMAGE_SUBRATE(sd->special_state.no_misc_damage)

		if(!damage) return 0;
	}

Add below this:
 

 

if (skill_id == AS_SONICBLOW)
    damage = damage * 75/100;

 

 

I didnt tested it, but I think It will run :)

Edited by Tucsus
Posted

Add under this:

 

if (bl->type == BL_PC) {
		sd=(struct map_session_data *)bl;
		//Special no damage states
		if(flag&BF_WEAPON && sd->special_state.no_weapon_damage)
			DAMAGE_SUBRATE(sd->special_state.no_weapon_damage)

		if(flag&BF_MAGIC && sd->special_state.no_magic_damage)
			DAMAGE_SUBRATE(sd->special_state.no_magic_damage)

		if(flag&BF_MISC && sd->special_state.no_misc_damage)
			DAMAGE_SUBRATE(sd->special_state.no_misc_damage)

		if(!damage) return 0;
	}

 

yep :)

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...