diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-05-01 11:10:40 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-05-01 11:10:40 -0400 |
commit | a8d45a3d95a1d9d7e09fabd0b9f4d83286c3fa6e (patch) | |
tree | d9605598c2a8fe152199400f0d9617e82188d981 /world | |
parent | b5e1b1ef16d57c58feb05f8a8b6e70b0f31be512 (diff) | |
download | serverdata-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.txt | 7 |
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))); |