Advertisement
Sarada-L2

Bug Sniper Fixed L2jfrozen

Jul 31st, 2021
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. diff --git a/src/l2jfrozen/game/model/L2Character.java b/src/l2jfrozen/game/model/L2Character.java
  2. index bf2dfb6..1dbc862 100644
  3. --- a/src/l2jfrozen/game/model/L2Character.java
  4. +++ b/src/l2jfrozen/game/model/L2Character.java
  5. @@ -168,7 +168,7 @@
  6. private boolean _isMuted = false; // Cannot use magic
  7. private boolean _isPsychicalMuted = false; // Cannot use psychical skills
  8. private boolean _isKilledAlready = false;
  9. - private boolean _isImmobilized = false;
  10. + private int _isImmobilized = 0;
  11. private boolean _isOverloaded = false; // the char is carrying too much
  12. private boolean _isParalyzed = false;
  13. private boolean _isRiding = false; //Is Riding strider?
  14. @@ -2776,7 +2776,7 @@
  15. */
  16. public boolean isImobilised()
  17. {
  18. - return _isImmobilized;
  19. + return _isImmobilized > 0;
  20. }
  21.  
  22. /**
  23. @@ -2788,7 +2788,14 @@
  24. // Stop this if he is moving
  25. getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
  26.  
  27. - _isImmobilized = value;
  28. + if (value)
  29. + {
  30. + _isImmobilized++;
  31. + }
  32. + else
  33. + {
  34. + _isImmobilized--;
  35. + }
  36. }
  37.  
  38. /**
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement