Jump to content
  • 0

Question

Posted

Im currently using eAthena SVN.

I would like to ask how will I be able to edit Wall of Fog to only affect enemies inside the fog?

Allies will not have a chance to skill fail.

Here is my current source code.
Thank you

			if((sc = status_get_sc(target)) &&
				(inf2&BCT_PARTY||inf2&BCT_GUILD) &&
				sc->data[SC_FOGWALL] &&
				rand()%100 < 75)
		  		{	//Fogwall makes all offensive-type targetted skills fail at 75%
					if (sd) clif_skill_fail(sd,ud->skillid,USESKILL_FAIL_LEVEL,0);
					break;
				}
			else
				{
				if((sc = status_get_sc(target)) &&
					sc->data[SC_FOGWALL] &&
					rand()%100 < 75)
		  			{	//Fogwall makes all offensive-type targetted skills fail at 75%
						if (sd) clif_skill_fail(sd,ud->skillid,USESKILL_FAIL_LEVEL,0);
						break;
					}
				}

 

1 answer to this question

Recommended Posts

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