Jump to content
  • 0

Berserk/Frenzy Changes


Skullz1

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  09/23/17
  • Last Seen:  

Hello,

How Can I block HP drain when I'm in berserk/frenzy?
Doesn't matter if i'm a Lord Knight or using a LK Card with other classes.
 

For exemple: Solar Sword, or Sky Deleter Card... I don't want this "lifesteal" effect working in my server.

I hope you understand, guys!

Thank you.


Sorry my bad English.
 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 2

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  64
  • Reputation:   40
  • Joined:  03/26/12
  • Last Seen:  

In battle.cpp search for void battle_drain

under uint8 i = 0;

add the code:

struct status_change *sc;

sc = status_get_sc(&sd->bl);

it should look like this now:

	uint8 i = 0;
	struct status_change *sc;
	
	sc = status_get_sc(&sd->bl);

	if (!CHK_RACE(race) && !CHK_CLASS(class_))
		return;

now after the line battle_vanish(sd, tbl, &d);

add this code:

if (sc && sc->count){
        if (sc->data[SC_BERSERK])
            return;
}

it should now look like this:

	// Check for vanish HP/SP. !CHECKME: Which first, drain or vanish?
	battle_vanish(sd, tbl, &d);
	
	if (sc && sc->count){
		if (sc->data[SC_BERSERK])
			return;
	}

	// Check for drain HP/SP

and there you go, no more lifesteal.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  09/23/17
  • Last Seen:  

Anybody? Please! ?

Link to comment
Share on other sites

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