Advertisement
SantaFace1

Untitled

Oct 4th, 2020
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. damage *= target.calcBlowDamageMul();
  2. if (damage > 0) {
  3. target.stopSleeping(null);
  4. }
  5.  
  6. if (Config.ALLOW_ELEMENT_MOD) {
  7. damage = applyElementDmg(target, attacker.getActiveWeaponInstance(), damage);
  8. }
  9. if (target.isL2Npc() && Config.MOB_FIXED_DAMAGE && Config.MOB_FIXED_DAMAGE_LIST.containsKey(target.getNpcId())) {
  10. damage = Config.MOB_FIXED_DAMAGE_LIST.get(target.getNpcId());
  11. }
  12. if (Config.PREMIUM_ENABLE && player.isPremium(target.getNpcId())) {
  13. if (damage < 0) {
  14. target.stopSleeping(null);
  15. }
  16. }
  17. return Math.max(damage, 1);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement