|
@@ -8733,29 +8733,6 @@ public final class L2PcInstance extends L2Playable
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (skill.hasEffectType(L2EffectType.TELEPORT_TO_TARGET))
|
|
|
- {
|
|
|
- // You cannot jump while rooted right ;)
|
|
|
- if (isMovementDisabled())
|
|
|
- {
|
|
|
- // Sends message that skill cannot be used...
|
|
|
- SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.S1_CANNOT_BE_USED);
|
|
|
- sm.addSkillName(skill.getId());
|
|
|
- sendPacket(sm);
|
|
|
- // Send a Server->Client packet ActionFailed to the L2PcInstance
|
|
|
- sendPacket(ActionFailed.STATIC_PACKET);
|
|
|
- return false;
|
|
|
- }
|
|
|
- // And this skill cannot be used in peace zone, not even on NPCs!
|
|
|
- if (isInsideZone(ZoneId.PEACE))
|
|
|
- {
|
|
|
- // Sends a sys msg to client
|
|
|
- sendPacket(SystemMessageId.TARGET_IN_PEACEZONE);
|
|
|
- // Send a Server->Client packet ActionFailed to the L2PcInstance
|
|
|
- sendPacket(ActionFailed.STATIC_PACKET);
|
|
|
- return false;
|
|
|
- }
|
|
|
- }
|
|
|
// Check if the skill is a good magic, target is a monster and if force attack is set, if not then we don't want to cast.
|
|
|
if ((skill.getEffectPoint() > 0) && target.isMonster() && !forceUse)
|
|
|
{
|