mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-16 21:51:29 +00:00
* [Hotfix] Fix issue with EVENT_HP firing from https://github.com/EQEmu/Server/pull/2904 * Fix * Fix
This commit is contained in:
parent
97edb09fba
commit
5b56a23a8a
10
zone/mob.cpp
10
zone/mob.cpp
@ -1382,11 +1382,10 @@ void Mob::CreateHPPacket(EQApplicationPacket* app)
|
|||||||
{
|
{
|
||||||
if (ds->hp < GetNextHPEvent())
|
if (ds->hp < GetNextHPEvent())
|
||||||
{
|
{
|
||||||
SetNextHPEvent(-1);
|
if (parse->HasQuestSub(CastToNPC()->GetNPCTypeID(), EVENT_HP)) {
|
||||||
|
|
||||||
if (parse->HasQuestSub(GetNPCTypeID(), EVENT_HP)) {
|
|
||||||
parse->EventNPC(EVENT_HP, CastToNPC(), nullptr, std::to_string(GetNextHPEvent()), 0);
|
parse->EventNPC(EVENT_HP, CastToNPC(), nullptr, std::to_string(GetNextHPEvent()), 0);
|
||||||
}
|
}
|
||||||
|
SetNextHPEvent(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1394,11 +1393,10 @@ void Mob::CreateHPPacket(EQApplicationPacket* app)
|
|||||||
{
|
{
|
||||||
if (ds->hp > GetNextIncHPEvent())
|
if (ds->hp > GetNextIncHPEvent())
|
||||||
{
|
{
|
||||||
SetNextIncHPEvent(-1);
|
if (parse->HasQuestSub(CastToNPC()->GetNPCTypeID(), EVENT_HP)) {
|
||||||
|
|
||||||
if (parse->HasQuestSub(GetNPCTypeID(), EVENT_HP)) {
|
|
||||||
parse->EventNPC(EVENT_HP, CastToNPC(), nullptr, std::to_string(GetNextIncHPEvent()), 1);
|
parse->EventNPC(EVENT_HP, CastToNPC(), nullptr, std::to_string(GetNextIncHPEvent()), 1);
|
||||||
}
|
}
|
||||||
|
SetNextIncHPEvent(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user