summaryrefslogtreecommitdiff
path: root/world/map/npc/magic/level2-lightning-strike.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/magic/level2-lightning-strike.txt')
-rw-r--r--world/map/npc/magic/level2-lightning-strike.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/world/map/npc/magic/level2-lightning-strike.txt b/world/map/npc/magic/level2-lightning-strike.txt
index cf30a627..5cc6299b 100644
--- a/world/map/npc/magic/level2-lightning-strike.txt
+++ b/world/map/npc/magic/level2-lightning-strike.txt
@@ -24,7 +24,7 @@
goto L_FreeRecast;
OnAttack:
- if (target(BL_ID, @target_id, 22) != 22) goto L_FreeRecast; // 0x10 | 0x02 | 0x04
+ if (target(BL_ID, @target_id, 0x36) != 0x36) goto L_FreeRecast; // 0x10 | 0x02 | 0x04 | 0x20
set .@p, get(.max_radius, "rain") + 1;
set @ingravspell[5], @target_id; // store it because foreach overwrites it
@@ -41,8 +41,15 @@ L_FreeRecast:
addtimer 0, strnpcinfo(0) + "::OnSetRecast";
end;
+OnDischarge:
+ if (@ingravspell[2] < 1) end;
+ set @ingravspell[2], 0;
+ misceffect FX_FIRE_BURST, strcharinfo(0);
+ overrideattack;
+ end;
+
OnSetRecast:
- overrideattack 1, @ingravspell[3], 8, ATTACK_ICON_GENERIC, 31, strnpcinfo(0)+"::OnAttack";
+ overrideattack @ingravspell[3], 8, ATTACK_ICON_GENERIC, 31, strnpcinfo(0)+"::OnAttack";
end;
OnNpc: