From 0243389ce2596ec0bb296c3e53019a12efb5351d Mon Sep 17 00:00:00 2001
From: Zoey76 <zoey_76@msn.com>
Date: Sat, 6 Jun 2015 18:27:38 -0300
Subject: [PATCH] Adding missing Run Away effect

Banish Undead (405)
Banish Seraph (450)
Fear (5173)
---
 .../game/data/stats/skills/00400-00499.xml    | 32 +++++++++++++++----
 .../game/data/stats/skills/05100-05199.xml    |  5 ++-
 2 files changed, 30 insertions(+), 7 deletions(-)

diff --git a/L2J_DataPack/dist/game/data/stats/skills/00400-00499.xml b/L2J_DataPack/dist/game/data/stats/skills/00400-00499.xml
index 4d023e26e3..0080bf85c4 100644
--- a/L2J_DataPack/dist/game/data/stats/skills/00400-00499.xml
+++ b/L2J_DataPack/dist/game/data/stats/skills/00400-00499.xml
@@ -313,6 +313,7 @@
 		<table name="#magicLvl"> 55 58 60 62 64 66 68 70 72 74 </table>
 		<table name="#mpConsume"> 50 53 55 58 59 61 63 65 67 68 </table>
 		<table name="#ench1Cost"> 66 65 64 63 62 61 60 58 57 56 55 54 53 52 51 49 48 47 46 45 44 43 41 40 39 38 37 36 35 34 </table>
+		<table name="#ench2Power"> 30, 31, 32, 32, 33, 34, 34, 35, 36, 36, 37, 38, 38, 39, 40, 40, 41, 42, 42, 43, 44, 44, 45, 46, 46, 47, 48, 48, 49, 50 </table> 
 		<table name="#ench2LethalStrikeRate"> 25 25 25 26 26 26 26 27 27 27 27 28 28 28 29 29 29 29 30 30 30 30 31 31 31 31 32 32 32 33 </table>
 		<table name="#ench3Attack"> 191 196 201 206 211 216 221 227 232 237 242 247 252 257 263 268 273 278 283 288 293 298 304 309 314 319 324 329 334 340 </table>
 		<table name="#ench4HolyAttack"> 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 </table>
@@ -344,19 +345,28 @@
 			<target race="UNDEAD" />
 		</cond>
 		<for>
-			<effect name="Fear" abnormalTime="20" />
+			<effect name="RunAway">
+				<param power="30" />
+				<param time="20" />
+			</effect>
 			<effect name="Lethal">
 				<param fullLethal="25" />
 			</effect>
 		</for>
 		<enchant2for>
-			<effect name="Fear" abnormalTime="20" />
+			<effect name="RunAway">
+				<param power="#ench2Power" />
+				<param time="20" />
+			</effect>
 			<effect name="Lethal">
 				<param fullLethal="#ench2LethalStrikeRate" />
 			</effect>
 		</enchant2for>
 		<enchant3for>
-			<effect name="Fear" abnormalTime="20" />
+			<effect name="RunAway">
+				<param power="30" />
+				<param time="20" />
+			</effect>
 			<effect name="Lethal">
 				<param fullLethal="25" />
 			</effect>
@@ -1823,6 +1833,7 @@
 		<table name="#magicLvl"> 55 58 60 62 64 66 68 70 72 74 </table>
 		<table name="#mpConsume"> 50 53 55 58 59 61 63 65 67 68 </table>
 		<table name="#ench1Cost"> 66 65 64 63 62 61 60 58 57 56 55 54 53 52 51 49 48 47 46 45 44 43 41 40 39 38 37 36 35 34 </table>
+		<table name="#ench2Power"> 30 31 32 32 33 34 34 35 36 36 37 38 38 39 40 40 41 42 42 43 44 44 45 46 46 47 48 48 49 50 </table>
 		<table name="#ench2LethalStrikeRate"> 25 25 25 26 26 26 26 27 27 27 27 28 28 28 29 29 29 29 30 30 30 30 31 31 31 31 32 32 32 33 </table>
 		<table name="#ench3Attack"> 191 196 201 206 211 216 221 227 232 237 242 247 252 257 263 268 273 278 283 288 293 298 304 309 314 319 324 329 334 340 </table>
 		<table name="#ench4DarkAttack"> 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 </table>
@@ -1854,19 +1865,28 @@
 			<target race="DIVINE" />
 		</cond>
 		<for>
-			<effect name="Fear" abnormalTime="20" />
+			<effect name="RunAway">
+				<param power="30" />
+				<param time="20" />
+			</effect>
 			<effect name="Lethal">
 				<param fullLethal="25" />
 			</effect>
 		</for>
 		<enchant2for>
-			<effect name="Fear" abnormalTime="20" />
+			<effect name="RunAway">
+				<param power="#ench2Power" />
+				<param time="20" />
+			</effect>
 			<effect name="Lethal">
 				<param fullLethal="#ench2LethalStrikeRate" />
 			</effect>
 		</enchant2for>
 		<enchant3for>
-			<effect name="Fear" abnormalTime="20" />
+			<effect name="RunAway">
+				<param power="30" />
+				<param time="20" />
+			</effect>
 			<effect name="Lethal">
 				<param fullLethal="25" />
 			</effect>
diff --git a/L2J_DataPack/dist/game/data/stats/skills/05100-05199.xml b/L2J_DataPack/dist/game/data/stats/skills/05100-05199.xml
index 2f78931339..b947bf80ba 100644
--- a/L2J_DataPack/dist/game/data/stats/skills/05100-05199.xml
+++ b/L2J_DataPack/dist/game/data/stats/skills/05100-05199.xml
@@ -1556,8 +1556,11 @@
 		<set name="targetType" val="ONE" />
 		<set name="trait" val="DERANGEMENT" />
 		<for>
+			<effect name="RunAway">
+				<param power="40" />
+				<param time="20" />
+			</effect>
 			<effect name="Fear" />
-			<!-- FIXME: We need an instant effect that will work only vs monsters and fear them with 40% chance for 20 seconds here -->
 		</for>
 	</skill>
 	<skill id="5174" levels="10" name="Poison">
-- 
GitLab