Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. // Epoque's Expansion Pack
  2. + // Chance to leave 1 HP when attacked to kill
  3. + if (target->type == BL_PC && hp == status->hp)
  4. + {
  5. + struct map_session_data* tsd = (struct map_session_data*)target;
  6. +
  7. + if (tsd->special_state.last_stand > rand()%100)
  8. + hp--;
  9. +
  10. + if (tsd->critical_dodge.hp > 0 && tsd->critical_dodge.rate > 0)
  11. + {
  12. + if (tsd->critical_dodge.hp >= (status->hp * 100 / status->max_hp) && tsd->critical_dodge.rate > rand()%100)
  13. + return 0;
  14. + }
  15. + }
  16. +
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement