Advertisement
Sarada-L2

Correção animação Skills Hero L2jMega

Aug 31st, 2023
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P Source Mega 16.06.2023
  3. diff --git java/com/l2jmega/gameserver/model/actor/Creature.java
  4. index aabe628..c556ccf 100644
  5. --- java/com/l2jmega/gameserver/model/actor/Creature.java
  6. +++ java/com/l2jmega/gameserver/model/actor/Creature.java
  7. @@ -1290,41 +1290,40 @@
  8.  
  9. if (skill.getSkillType() == L2SkillType.FUSION)
  10. startFusionSkill(target, skill);
  11. else
  12. callSkill(skill, targets);
  13. }
  14.  
  15. // Get the Display Identifier for a skill that client can't display
  16. int displayId = skill.getId();
  17.  
  18. // Get the level of the skill
  19. int level = skill.getLevel();
  20. if (level < 1)
  21. level = 1;
  22.  
  23. // Broadcast MagicSkillUse for non toggle skills.
  24. if (!skill.isToggle())
  25. {
  26. if (!skill.isPotion())
  27. {
  28. - if (!(skill.isHeroSkill()))
  29. broadcastPacket(new MagicSkillUse(this, target, displayId, level, skillTime, reuseDelay, false));
  30.  
  31. broadcastPacket(new MagicSkillLaunched(this, displayId, level, (targets == null || targets.length == 0) ? new WorldObject[]
  32. {
  33. target
  34. } : targets));
  35. }
  36. else
  37. broadcastPacket(new MagicSkillUse(this, target, displayId, level, 0, 0));
  38. }
  39.  
  40. if (this instanceof Playable)
  41. {
  42. // Send a system message USE_S1 to the Creature
  43. if (this instanceof Player && skill.getId() != 1312 && skill.getId() != 2099)
  44. {
  45. SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.USE_S1);
  46. sm.addSkillName(skill);
  47. sendPacket(sm);
  48. }
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement