1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-30 16:17:46 +00:00

Merge pull request #514 from NotAdam/develop

fix bnpc kill events not being called in scripts
This commit is contained in:
Mordred 2019-01-29 10:29:06 +01:00 committed by GitHub
commit bbd63a0a85

View file

@ -285,12 +285,12 @@ bool Sapphire::Scripting::ScriptMgr::onMobKill( Entity::Player& player, uint16_t
if( !activeQuests )
continue;
uint16_t questId = activeQuests->c.questId;
uint32_t questId = activeQuests->c.questId | 0x00010000;
auto script = m_nativeScriptMgr->getScript< Sapphire::ScriptAPI::EventScript >( questId );
if( script )
{
std::string objName = pEventMgr->getEventName( 0x00010000 | questId );
std::string objName = pEventMgr->getEventName( questId );
player.sendDebug( "Calling: {0}.{1}", objName, eventName );