Jump to content

Cainho

Members
  • Content Count

    1
  • Joined

  • Last visited

Posts posted by Cainho


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

×
×
  • Create New...

Important Information

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