Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Epoque's Expansion Pack
- + // Chance to leave 1 HP when attacked to kill
- + if (target->type == BL_PC && hp == status->hp)
- + {
- + struct map_session_data* tsd = (struct map_session_data*)target;
- +
- + if (tsd->special_state.last_stand > rand()%100)
- + hp--;
- +
- + if (tsd->critical_dodge.hp > 0 && tsd->critical_dodge.rate > 0)
- + {
- + if (tsd->critical_dodge.hp >= (status->hp * 100 / status->max_hp) && tsd->critical_dodge.rate > rand()%100)
- + return 0;
- + }
- + }
- +
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement