SkillChannelizer MagicSkillLaunched does not need varargs.

This commit is contained in:
MobiusDevelopment 2022-12-26 23:11:14 +00:00
parent 473164e739
commit 90a51d6371
52 changed files with 130 additions and 78 deletions

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1114,6 +1114,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1129,6 +1130,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1143,6 +1145,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1107,6 +1107,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1122,6 +1123,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1136,6 +1138,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1114,6 +1114,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1129,6 +1130,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1143,6 +1145,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1114,6 +1114,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1129,6 +1130,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1143,6 +1145,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1114,6 +1114,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1129,6 +1130,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1143,6 +1145,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)

View File

@ -1114,6 +1114,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTarget(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target type of skill " + this + " is not currently handled."); creature.sendMessage("Target type of skill " + this + " is not currently handled.");
return null; return null;
} }
@ -1129,6 +1130,7 @@ public class Skill implements IIdentifiable
{ {
return null; return null;
} }
final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope()); final IAffectScopeHandler handler = AffectScopeHandler.getInstance().getHandler(getAffectScope());
if (handler != null) if (handler != null)
{ {
@ -1143,6 +1145,7 @@ public class Skill implements IIdentifiable
LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e); LOGGER.log(Level.WARNING, "Exception in Skill.getTargetsAffected(): " + e.getMessage(), e);
} }
} }
creature.sendMessage("Target affect scope of skill " + this + " is not currently handled."); creature.sendMessage("Target affect scope of skill " + this + " is not currently handled.");
return null; return null;
} }

View File

@ -16,7 +16,6 @@
*/ */
package org.l2jmobius.gameserver.network.serverpackets; package org.l2jmobius.gameserver.network.serverpackets;
import java.util.Arrays;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
@ -51,9 +50,9 @@ public class MagicSkillLaunched extends ServerPacket
_targets = targets; _targets = targets;
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject... targets) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel, SkillCastingType castingType, WorldObject target)
{ {
this(creature, skillId, skillLevel, castingType, (targets == null ? Collections.singletonList(creature) : Arrays.asList(targets))); this(creature, skillId, skillLevel, castingType, Collections.singletonList(target == null ? creature : target));
} }
public MagicSkillLaunched(Creature creature, int skillId, int skillLevel) public MagicSkillLaunched(Creature creature, int skillId, int skillLevel)