1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 14:57:44 +00:00

cleanup onBnpcKill debug message

This commit is contained in:
NotAdam 2019-02-03 18:37:58 +11:00
parent cde7678cc0
commit de11c69904

View file

@ -276,8 +276,6 @@ bool Sapphire::Scripting::ScriptMgr::onBNpcKill( Entity::Player& player, uint16_
{
auto pEventMgr = framework()->get< World::Manager::EventMgr >();
std::string eventName = "onBnpcKill_" + std::to_string( nameId );
// loop through all active quests and try to call available onBNpcKill callbacks
for( size_t i = 0; i < 30; i++ )
{
@ -292,7 +290,7 @@ bool Sapphire::Scripting::ScriptMgr::onBNpcKill( Entity::Player& player, uint16_
{
std::string objName = pEventMgr->getEventName( questId );
player.sendDebug( "Calling: {0}.{1}", objName, eventName );
player.sendDebug( "Calling: {0}.onBnpcKill nameId#{1}", objName, nameId );
script->onBNpcKill( nameId, player );
}