Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P Source Mega 16.06.2023
- diff --git java/com/l2jmega/gameserver/model/actor/Creature.java
- index aabe628..c556ccf 100644
- --- java/com/l2jmega/gameserver/model/actor/Creature.java
- +++ java/com/l2jmega/gameserver/model/actor/Creature.java
- @@ -1290,41 +1290,40 @@
- if (skill.getSkillType() == L2SkillType.FUSION)
- startFusionSkill(target, skill);
- else
- callSkill(skill, targets);
- }
- // Get the Display Identifier for a skill that client can't display
- int displayId = skill.getId();
- // Get the level of the skill
- int level = skill.getLevel();
- if (level < 1)
- level = 1;
- // Broadcast MagicSkillUse for non toggle skills.
- if (!skill.isToggle())
- {
- if (!skill.isPotion())
- {
- - if (!(skill.isHeroSkill()))
- broadcastPacket(new MagicSkillUse(this, target, displayId, level, skillTime, reuseDelay, false));
- broadcastPacket(new MagicSkillLaunched(this, displayId, level, (targets == null || targets.length == 0) ? new WorldObject[]
- {
- target
- } : targets));
- }
- else
- broadcastPacket(new MagicSkillUse(this, target, displayId, level, 0, 0));
- }
- if (this instanceof Playable)
- {
- // Send a system message USE_S1 to the Creature
- if (this instanceof Player && skill.getId() != 1312 && skill.getId() != 2099)
- {
- SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.USE_S1);
- sm.addSkillName(skill);
- sendPacket(sm);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement