Jump to content
  • 0
iraciz

Dark Strike Skill Bonus vs Holy Property or Angel Race

Question

In source battle.c theres a function that increase soul strike skill vs undead.

case MG_SOULSTRIKE:
if (battle_check_undead(tstatus->race,tstatus->def_ele))
skillratio += 5 * skill_lv;
break;        

 

I tried to do the same for NPC_DARKSTRIKE but I've got error, any one could help me here?
increase the damage for holy property 5% every skill level based on NPC_DARKSTRIKE, I implemented that skill in mage skill tree, modifyed luas and added, I just need the source for de damage increase vs holy monsters.

 

 

15178292_10154016727114249_6332145934354682296_n.jpg

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
--- C:\Users\Jittapan\AppData\Local\Temp\TOdqXa_battle.c	2017-05-07 17:35:33.883000000 +0700
+++ D:\GitRepo\rAthena\src\map\battle.c	2017-05-07 17:35:36.840000000 +0700
@@ -5764,6 +5764,10 @@
 						if (battle_check_undead(tstatus->race,tstatus->def_ele))
 							skillratio += 5 * skill_lv;
 						break;
+					case NPC_DARKSTRIKE:
+						if (tstatus->race == RC_ANGEL || tstatus->def_ele == ELE_HOLY)
+							skillratio += 5 * skill_lv;
+						break;
 					case MG_FIREWALL:
 						skillratio -= 50;
 						break;

 

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