summaryrefslogtreecommitdiff
path: root/world
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-05-01 11:10:40 -0400
committermekolat <mekolat@users.noreply.github.com>2016-05-01 11:10:40 -0400
commita8d45a3d95a1d9d7e09fabd0b9f4d83286c3fa6e (patch)
treed9605598c2a8fe152199400f0d9617e82188d981 /world
parentb5e1b1ef16d57c58feb05f8a8b6e70b0f31be512 (diff)
downloadserverdata-a8d45a3d95a1d9d7e09fabd0b9f4d83286c3fa6e.tar.gz
serverdata-a8d45a3d95a1d9d7e09fabd0b9f4d83286c3fa6e.tar.bz2
serverdata-a8d45a3d95a1d9d7e09fabd0b9f4d83286c3fa6e.tar.xz
serverdata-a8d45a3d95a1d9d7e09fabd0b9f4d83286c3fa6e.zip
add discharge handler to chiza
Diffstat (limited to 'world')
-rw-r--r--world/map/npc/magic/level1-magic-blade.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/world/map/npc/magic/level1-magic-blade.txt b/world/map/npc/magic/level1-magic-blade.txt
index a1a1e1e5..851f8dea 100644
--- a/world/map/npc/magic/level1-magic-blade.txt
+++ b/world/map/npc/magic/level1-magic-blade.txt
@@ -23,6 +23,13 @@
callfunc "magic_exp";
goto L_FreeRecast;
+OnDischarge:
+ if (@chizaspell[2] < 1) end;
+ set @chizaspell[2], 0;
+ misceffect FX_FIRE_BURST, strcharinfo(0);
+ overrideattack;
+ end;
+
OnAttack:
if (target(BL_ID, @target_id, 22) != 22) goto L_FreeRecast; // 0x10 | 0x02 | 0x04
void call("melee_damage", @chizaspell[4], @target_id, (@chizaspell[0] + rand(@chizaspell[1] + 5)));