Jump to content
  • 0
Sign in to follow this  
Cainho

Modification Reject Sword and Reflect Shield

Question

I need to modify the Reject Sword and Reflect Shield skills so that when being attacked by a monster and take damage greater than max_hp the player should only reflect the max_hp if the damage is less it will reflect the damage to take the monster.

 

I tried this change, but she error and closes the map-server.

 

src/map/battle.c

NORMALIZE_RDAMAGE((damage * sc->data[SC_REFLECTSHIELD]->val2 / 100) > sd->status.max_hp ) ? sd->status.max_hp : (damage * sc->data[SC_REFLECTSHIELD]->val2 / 100);
     if (rdamage < 1) rdamage = 1;

 

Note: Sorry for my English by, but I started the lessons shortly.

Edited by Cainho

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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