Advertisement
SantaFace1

Untitled

Oct 7th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 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. return Math.max(damage, 1);
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement