MCPcopy Create free account
hub / github.com/SapphireServer/Sapphire / onDutyComplete

Method onDutyComplete

src/world/Script/ScriptMgr.cpp:533–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533bool
534Sapphire::Scripting::ScriptMgr::onDutyComplete( Sapphire::QuestBattlePtr instance, Sapphire::Entity::Player& player )
535{
536 auto script = m_nativeScriptMgr->getScript< Sapphire::ScriptAPI::QuestBattleScript >( instance->getDirectorId() );
537 if( script )
538 {
539 script->onDutyComplete( *instance, player );
540 return true;
541 }
542
543 return false;
544}

Callers 1

successMethod · 0.45

Calls 1

getDirectorIdMethod · 0.45

Tested by

no test coverage detected