Browse Source

BETA: Datapack part for [L5694].
* Implementing Switch Stance skill.
* Minor fix for Servitor Share effect, shouldn't work on pets.

Zoey76 12 years ago
parent
commit
b374939a4f

+ 3 - 3
L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/ServitorShare.java

@@ -23,6 +23,7 @@ import com.l2jserver.gameserver.model.effects.L2EffectType;
 import com.l2jserver.gameserver.model.stats.Env;
 
 /**
+ * Synchronizing effects on player and servitor if one of them gets removed for some reason the same will happen to another.
  * @author UnAfraid
  */
 public class ServitorShare extends L2Effect
@@ -41,17 +42,16 @@ public class ServitorShare extends L2Effect
 	@Override
 	public void onExit()
 	{
-		// Synchronizing effects on player and pet if one of them get's removed for some reason the same will happen to another.
 		L2Effect[] effects = null;
 		if (getEffected().isPlayer())
 		{
 			L2Summon summon = getEffector().getSummon();
-			if (summon != null)
+			if ((summon != null) && summon.isServitor())
 			{
 				effects = summon.getAllEffects();
 			}
 		}
-		else if (getEffected().isSummon())
+		else if (getEffected().isServitor())
 		{
 			L2PcInstance owner = getEffected().getActingPlayer();
 			if (owner != null)

+ 4 - 2
L2J_DataPack_BETA/dist/game/data/stats/skills/06000-06099.xml

@@ -494,9 +494,11 @@
 		</for>
 	</skill>
 	<skill id="6054" levels="1" name="Switch State">
-		<set name="target" val="TARGET_NONE" />
-		<set name="skillType" val="NOTDONE" />
+		<!-- Confirmed CT2.5 -->
+		<set name="magicLvl" val="1" />
 		<set name="operateType" val="T" />
+		<set name="skillType" val="DUMMY" />
+		<set name="target" val="TARGET_SELF" />
 	</skill>
 	<skill id="6055" levels="1" name="Report Status">
 		<set name="abnormalLvl" val="1" />