diff options
author | Hello=) <hello@themanaworld.org> | 2024-06-19 07:47:06 +0300 |
---|---|---|
committer | Hello TMW <hello@themanaworld.org> | 2024-06-19 04:58:18 +0000 |
commit | c7fd672bd4bab84f940f0b356ebc6a94115905b0 (patch) | |
tree | 50c6288a465e646f6737ac9709a4019c7fccd12c /world/map/npc/011-1 | |
parent | 4b5d0f318e5a9f29326866b8d6d41d212c0e8fe7 (diff) | |
download | serverdata-c7fd672bd4bab84f940f0b356ebc6a94115905b0.tar.gz serverdata-c7fd672bd4bab84f940f0b356ebc6a94115905b0.tar.bz2 serverdata-c7fd672bd4bab84f940f0b356ebc6a94115905b0.tar.xz serverdata-c7fd672bd4bab84f940f0b356ebc6a94115905b0.zip |
Fix for repeated suicides of caster when they try to attack target after they
killed in rain by own lightning.
Problem technically can be described like this:
1) Caster retains all spell charges upon death for lightnings.
2) It wouldn't be problem itself, but it would invoke OnAttack handler!
3) If caster dies in rain by own lightning, nothing clears "in rain" flag.
4) When they respawn and try to attack, OnAttack kicks in.
5) Since nothing has cleaned "in rain" flag, its still set.
6) At this point caster dies by own lightning again.
7) Worse, on respawn sequence would repeat itself.
This happens regardless of rain and is very unexpected edge case.
Workaround: caster can use #dicharge spell after respawn but its unobvious.
Diffstat (limited to 'world/map/npc/011-1')
0 files changed, 0 insertions, 0 deletions