my english is terrible and my programming logic is different i'm sorry, i accept constructive criticism.
diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Skill.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Skill.java
index 56f201a..2f3aa82 100644
--- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Skill.java
+++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/model/Skill.java
@@ -2423,22 +2423,9 @@
}
case TARGET_AREA_CORPSE_MOB:
{
- if (!(target instanceof Attackable) || !target.isDead())
- {
- creature.sendPacket(new SystemMessage(SystemMessageId.THAT_IS_THE_INCORRECT_TARGET));
- return null;
- }
- if (!onlyFirst)
- {
- targetList.add(target);
- }
- else
- {
- return new Creature[]
- {
- target
- };
- }
final boolean srcInArena = creature.isInsideZone(ZoneId.PVP) && !creature.isInsideZone(ZoneId.SIEGE);
PlayerInstance src = null;
if (creature instanceof PlayerInstance)
@@ -2449,16 +2436,10 @@
final int radius = _skillRadius;
if (creature.getKnownList() != null)
{
- for (WorldObject obj : creature.getKnownList().getKnownObjects().values())
+ for (Creature obj : creature.getKnownList().getKnownCharactersInRadius(radius))
{
- if (obj == null)
- {
- continue;
- }
- if ((!(obj instanceof Attackable) && !(obj instanceof Playable)) || ((Creature) obj).isDead() || ((Creature) obj == creature))
- {
- continue;
- }
+
if (!Util.checkIfInRange(radius, target, obj, true))
{
continue;
@@ -2532,14 +2513,13 @@
{
continue;
}
- targetList.add((Creature) obj);
+ targetList.add(obj);
}
+
}
- if (targetList.isEmpty())
- {
- return null;
- }
- return targetList.toArray(new Creature[targetList.size()]);
+
+ return targetList.toArray(new WorldObject[targetList.size()]);
+
}
case TARGET_UNLOCKABLE:
{
diff --git a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/Sweep.java b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/Sweep.java
index 2ced212..b48c8af 100644
--- a/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/Sweep.java
+++ b/L2J_Mobius_C6_Interlude/java/org/l2jmobius/gameserver/handler/skillhandlers/Sweep.java
@@ -70,7 +70,7 @@
}
}
- if (isSweeping)
+ if (isSweeping == true)
{
if ((items == null) || (items.length == 0))
{
@@ -105,9 +105,13 @@
player.sendPacket(smsg);
}
}
+ target.endDecayTask();
+
}
- target.endDecayTask();
-
+ else if ((target.isDead() == true) && (isSweeping == false))
+ {
+ target.endDecayTask();
+ }
if (send)
{
if (iu != null)