• 0
Skullz1

Berserk/Frenzy Changes

Question

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.
 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 2

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.

Share this post


Link to post
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.