Advertisement
Nik

Charge skills fix.

Nik
Jul 24th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.05 KB | None | 0 0
  1. Index: skillhandlers/Pdam.java
  2. ===================================================================
  3. --- skillhandlers/Pdam.java (revision 9014)
  4. +++ skillhandlers/Pdam.java (working copy)
  5. @@ -48,6 +48,14 @@
  6.         if (activeChar.isAlikeDead())
  7.             return;
  8.        
  9. +       if ((skill.getFlyRadius() > 0 || skill.getFlyType() != null) && activeChar.isMovementDisabled())
  10. +       {
  11. +           SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_CANNOT_BE_USED);
  12. +           sm.addSkillName(skill);
  13. +           activeChar.sendPacket(sm);
  14. +           return;
  15. +       }
  16. +      
  17.         int damage = 0;
  18.        
  19.         if (Config.DEBUG)
  20. Index: effecthandlers/EnemyCharge.java
  21. ===================================================================
  22. --- effecthandlers/EnemyCharge.java (revision 9014)
  23. +++ effecthandlers/EnemyCharge.java (working copy)
  24. @@ -47,6 +47,9 @@
  25.     @Override
  26.     public boolean onStart()
  27.     {
  28. +       if (getEffected().isMovementDisabled())
  29. +           return false;
  30. +      
  31.         // Get current position of the L2Character
  32.         final int curX = getEffector().getX();
  33.         final int curY = getEffector().getY();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement