From 5c2c4cc7399c76f42e35a8f5c074b2a1bfe86a81 Mon Sep 17 00:00:00 2001 From: mekolat Date: Sun, 1 May 2016 11:15:59 -0400 Subject: add discharge handler to chipchip --- world/map/npc/magic/level2-shear.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'world') diff --git a/world/map/npc/magic/level2-shear.txt b/world/map/npc/magic/level2-shear.txt index 91bb4de0..f65119c3 100644 --- a/world/map/npc/magic/level2-shear.txt +++ b/world/map/npc/magic/level2-shear.txt @@ -47,6 +47,13 @@ L_FreeRecast: addtimer 0, strnpcinfo(0) + "::OnSetRecast"; // we can't do it while already overridden, until it reaches a script terminator end; +OnDischarge: + if (@chipchipspell[2] < 1) end; + set @chipchipspell[2], 0; + misceffect FX_FIRE_BURST, strcharinfo(0); + overrideattack; + end; + OnSetRecast: overrideattack @chipchipspell[1], 1, ATTACK_ICON_SHEARING, 30, strnpcinfo(0)+"::OnAttack"; end; -- cgit v1.2.3-60-g2f50