Advertisement
Nik

Update for Changeset 4581, same should be for non-PCs

Nik
Apr 23rd, 2011
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.74 KB | None | 0 0
  1. Index: java/com/l2jserver/gameserver/model/actor/status/CharStatus.java
  2. ===================================================================
  3. --- java/com/l2jserver/gameserver/model/actor/status/CharStatus.java    (revision 4580)
  4. +++ java/com/l2jserver/gameserver/model/actor/status/CharStatus.java    (working copy)
  5. @@ -147,16 +147,8 @@
  6.             return;
  7.        
  8.         // invul handling
  9. -       if (getActiveChar().isInvul())
  10. -       {
  11. -           // other chars can't damage
  12. -           if (attacker != getActiveChar())
  13. -               return;
  14. -          
  15. -           // only DOT and HP consumption allowed for damage self
  16. -           if (!isDOT && !isHPConsumption)
  17. -               return;
  18. -       }
  19. +        if (getActiveChar().isInvul() && !(isDOT || isHPConsumption))
  20. +           return;
  21.        
  22.         if (attacker != null)
  23.         {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement