Jump to content
  • 0
Rizta

HP/SP Drain

Question

Hi!

How can i edit HP/SP Drain bonuses to work with Magic and Misc type skills? 

Edited by Rizta
forgot to tell is magic and misc skills
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
On 11/8/2018 at 7:32 AM, Vykimo said:

I Don't really understand the problem. Can you specify which skills you would like to be affected ?

Anyone tagged as Magic or Misc. Magic Ex: any bolts, stormgust, lov, meteor storm etc.  Misc Ex: Falcon Assault, Blitz Beat etc...

Currently drain hp and sp only work with skill IF these skills r Weapon type.

Link to comment
Share on other sites

  • 0

Partial answer :

Go in skill.cpp, search for : 

	if( sd && src != bl && damage > 0 && ( dmg.flag&BF_WEAPON ||
		(dmg.flag&BF_MISC && (skill_id == RA_CLUSTERBOMB || skill_id == RA_FIRINGTRAP || skill_id == RA_ICEBOUNDTRAP)) ) )
	{

replace by this

	if( sd && src != bl && damage > 0 && ( dmg.flag&BF_WEAPON || dmg.flag&BF_MISC || dmg.flag&BF_MAGIC ) )
	{

 

This answer could partially answer your problem, but i'm not sure it would be enough..

  • Upvote 1
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.