Fixed Sweeper skill.
This commit is contained in:
@@ -64,9 +64,11 @@ public class FortressFlagpole implements ITargetTypeHandler
|
|||||||
case 36285:
|
case 36285:
|
||||||
case 36316:
|
case 36316:
|
||||||
case 36354:
|
case 36354:
|
||||||
|
{
|
||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (sendMessage)
|
if (sendMessage)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,5 +39,4 @@ public class Item implements ITargetTypeHandler
|
|||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ import com.l2jmobius.gameserver.GeoData;
|
|||||||
import com.l2jmobius.gameserver.handler.ITargetTypeHandler;
|
import com.l2jmobius.gameserver.handler.ITargetTypeHandler;
|
||||||
import com.l2jmobius.gameserver.model.L2Object;
|
import com.l2jmobius.gameserver.model.L2Object;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||||
import com.l2jmobius.gameserver.model.actor.L2Playable;
|
|
||||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||||
import com.l2jmobius.gameserver.model.skills.targets.TargetType;
|
import com.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||||
@@ -61,7 +60,7 @@ public class NpcBody implements ITargetTypeHandler
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
final L2Playable target = (L2Playable) selectedTarget;
|
final L2Character target = (L2Character) selectedTarget;
|
||||||
|
|
||||||
if (target.isDead())
|
if (target.isDead())
|
||||||
{
|
{
|
||||||
@@ -90,7 +89,7 @@ public class NpcBody implements ITargetTypeHandler
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return target;
|
return selectedTarget;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If target is not dead or not player/pet it will not even bother to walk within range, unlike Enemy target type.
|
// If target is not dead or not player/pet it will not even bother to walk within range, unlike Enemy target type.
|
||||||
|
|||||||
@@ -39,5 +39,4 @@ public class Others implements ITargetTypeHandler
|
|||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,5 +50,4 @@ public class Self implements ITargetTypeHandler
|
|||||||
}
|
}
|
||||||
return activeChar;
|
return activeChar;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,5 +39,4 @@ public class WyvernTarget implements ITargetTypeHandler
|
|||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
|||||||
*/
|
*/
|
||||||
public enum CommonSkill
|
public enum CommonSkill
|
||||||
{
|
{
|
||||||
|
SWEEPER(42, 1),
|
||||||
RAID_CURSE(4215, 1),
|
RAID_CURSE(4215, 1),
|
||||||
RAID_CURSE2(4515, 1),
|
RAID_CURSE2(4515, 1),
|
||||||
SEAL_OF_RULER(246, 1),
|
SEAL_OF_RULER(246, 1),
|
||||||
|
|||||||
@@ -206,7 +206,6 @@ public class SkillCaster implements Runnable
|
|||||||
// Stop casting if there is no next phase.
|
// Stop casting if there is no next phase.
|
||||||
stopCasting(false);
|
stopCasting(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean startCasting()
|
public boolean startCasting()
|
||||||
@@ -545,10 +544,14 @@ public class SkillCaster implements Runnable
|
|||||||
}
|
}
|
||||||
else if (obj.isMonster() || (obj.isPlayable() && ((obj.getActingPlayer().getPvpFlag() > 0) || (obj.getActingPlayer().getReputation() < 0))))
|
else if (obj.isMonster() || (obj.isPlayable() && ((obj.getActingPlayer().getPvpFlag() > 0) || (obj.getActingPlayer().getReputation() < 0))))
|
||||||
{
|
{
|
||||||
// Supporting players or monsters result in pvpflag.
|
// Supporting players or monsters result in pvpflag,
|
||||||
|
// but Sweeper is excluded.
|
||||||
|
if (obj.isMonster() && (skill.getId() != CommonSkill.SWEEPER.getId()))
|
||||||
|
{
|
||||||
player.updatePvPStatus();
|
player.updatePvPStatus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Mobs in range 1000 see spell
|
// Mobs in range 1000 see spell
|
||||||
L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob ->
|
L2World.getInstance().forEachVisibleObjectInRange(player, L2Npc.class, 1000, npcMob ->
|
||||||
|
|||||||
Reference in New Issue
Block a user