Guest User

Untitled

a guest
Jun 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. package l1j.extendsSys;
  2.  
  3. import l1j.server.server.model.Instance.L1MonsterInstance;
  4. import l1j.server.server.model.Instance.L1NpcInstance;
  5. import l1j.server.server.model.Instance.L1PcInstance;
  6.  
  7. /**
  8. * 怪物智商解卡系統
  9. * @author RR-
  10. *
  11. */
  12. public class L1IdleAttack {
  13.  
  14. public static void _addIdleAtk(L1PcInstance pc, L1NpcInstance targetNpc) {
  15. if (targetNpc instanceof L1MonsterInstance) {
  16. targetNpc._addAttack(1);
  17. }
  18. }
  19.  
  20. public static void _resetIdleAtk(L1NpcInstance targetNpc) {
  21. if (targetNpc instanceof L1MonsterInstance) {
  22. targetNpc._setidleAttack(0);
  23. }
  24. }
  25.  
  26. }
Add Comment
Please, Sign In to add comment