1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-02 00:47:45 +00:00

Add condition to increment currentKC in SubFst011

Prevents repeated excess quest progress event notices if Enemy0 is killed after kill count is already reached
This commit is contained in:
Pinapelz 2024-05-10 16:13:45 -07:00
parent 3d1c8b0c2c
commit 8f408c4e5e

View file

@ -67,8 +67,11 @@ public:
case Enemy0:
{
auto currentKC = quest.getUI8AL();
quest.setUI8AL( currentKC + 1 );
eventMgr().sendEventNotice( player, getId(), 0, 2, currentKC + 1, 6 );
if( currentKC < 6 )
{
quest.setUI8AL( currentKC + 1 );
eventMgr().sendEventNotice( player, getId(), 0, 2, currentKC + 1, 6 );
}
if( currentKC + 1 >= 6 )
quest.setSeq( SeqFinish );