HerculesWS / Hercules

Hercules is a collaborative software development project revolving around the creation of a robust massively multiplayer online role playing game (MMORPG) server package. Written in C, the program is very versatile and provides NPCs, warps and modifications. The project is jointly managed by a group of volunteers located around the world as well as a tremendous community providing QA and support. Hercules is a continuation of the original Athena project.

Home Page:http://herc.ws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storm Gust counter (sg_counter) does not refresh on Mob death

AcidMarco opened this issue · comments

Describe the bug
Pre-renewal. When you are using Storm Gust skill on natural spawned monsters and the monsters die cause of Storm Gust hits, the counter (sg_counter) for this mob does not refresh. After respawn the monster can be freezed in 1-2 hits.

To Reproduce
Steps to reproduce the behavior:

  1. Kill monsters with Storm Gust on one map
  2. After first respawn they will start freeze in 1-2 hits

Expected behavior
As per mechanics the status has to be changed only after 3 hits.
Counter should be refreshed after monster death.

Video
I've create natural spot with script:
prt_in,33,111,0,0 monster AGAV 1769,5,0,0,0
See the video below, on the 3rd hit the monsters die,
But after respawn the timer is not refreshed, and they
freeze after first Storm Gust skill.
https://youtu.be/-OEMXYlKLnw

Additional context
Amendments in 'skill.c' do not solve the issue.
I have found counter refresher in 'status.c', but seems it only work for BL_PC.

This makes sense.
I have faced this issue as well. Possible fix can be clearing sg_counter (or status change) on respawn.

Tried many options in different variations. Have no clue how to fix it. I will highly appreciate if someone can find the solution based on source knowledge. All my nub attempts have failed.