소스 검색

BETA: Effect fixes:
* Lucky effect for Lucky skill.
* Divine Inspiration skill fix.

Thanks MELERIX for helping with constant questions.

Zoey76 12 년 전
부모
커밋
e91dc04604

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/EnlargeAbnormalSlot.java

@@ -49,6 +49,6 @@ public class EnlargeAbnormalSlot extends L2Effect
 	@Override
 	public L2EffectType getEffectType()
 	{
-		return L2EffectType.BUFF;
+		return L2EffectType.ENLARGE_ABNORMAL_SLOT;
 	}
 }

+ 54 - 0
L2J_DataPack_BETA/dist/game/data/scripts/handlers/effecthandlers/Lucky.java

@@ -0,0 +1,54 @@
+/*
+ * Copyright (C) 2004-2013 L2J DataPack
+ * 
+ * This file is part of L2J DataPack.
+ * 
+ * L2J DataPack is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * 
+ * L2J DataPack is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+package handlers.effecthandlers;
+
+import com.l2jserver.gameserver.model.effects.EffectTemplate;
+import com.l2jserver.gameserver.model.effects.L2Effect;
+import com.l2jserver.gameserver.model.effects.L2EffectType;
+import com.l2jserver.gameserver.model.stats.Env;
+
+/**
+ * Lucky effect.
+ * @author Zoey76
+ */
+public class Lucky extends L2Effect
+{
+	public Lucky(Env env, EffectTemplate template)
+	{
+		super(env, template);
+	}
+	
+	@Override
+	public boolean onStart()
+	{
+		return (getEffector() != null) && (getEffected() != null) && getEffected().isPlayer();
+	}
+	
+	@Override
+	public boolean onActionTime()
+	{
+		return true;
+	}
+	
+	@Override
+	public L2EffectType getEffectType()
+	{
+		return L2EffectType.LUCKY;
+	}
+}

+ 3 - 5
L2J_DataPack_BETA/dist/game/data/stats/skills/00100-00199.xml

@@ -1300,14 +1300,12 @@
 	</skill>
 	<skill id="194" levels="1" name="Lucky">
 		<!-- Confirmed CT2.5 -->
-		<!-- At lv 9 or lower, the user will not experience loss of Exp. and Vitality points, and after-death effect upon death. -->
 		<set name="magicLvl" val="1" />
 		<set name="operateType" val="P" />
 		<set name="target" val="TARGET_SELF" />
-		<!-- Uncomment when Lucky effect and effect for passive skills is implemented. -->
-		<!-- for -->
-		<!-- effect name="Lucky" abnormalTime="-1" val="0" / -->
-		<!--/for -->
+		<for>
+			<effect name="Lucky" abnormalTime="-1" val="0" />
+		</for>
 	</skill>
 	<skill id="195" levels="2" name="Breath Boost">
 		<table name="#breath"> 180 300 </table>

+ 1 - 1
L2J_DataPack_BETA/dist/game/data/stats/skills/01400-01499.xml

@@ -189,7 +189,7 @@
 		<set name="operateType" val="P" />
 		<set name="target" val="TARGET_SELF" />
 		<for>
-			<effect name="EnlargeAbnormalSlot" noicon="1" val="#slots" />
+			<effect name="EnlargeAbnormalSlot" noicon="1" val="#slots" abnormalTime="-1" />
 		</for>
 	</skill>
 	<skill id="1406" levels="1" name="Summon Feline King" enchantGroup1="5">