Modification Reject Sword and Reflect Shield

Cainho

New member
Messages
1
Points
0
Age
33
Location
São Carlos
Github
Cainho
Emulator
Cronus
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.

 
Last edited by a moderator:
Back
Top