| 366 | } |
| 367 | |
| 368 | bool Sapphire::Scripting::ScriptMgr::onStatusReceive( Entity::CharaPtr pActor, uint32_t effectId ) |
| 369 | { |
| 370 | auto script = m_nativeScriptMgr->getScript< Sapphire::ScriptAPI::StatusEffectScript >( effectId ); |
| 371 | |
| 372 | if( script ) |
| 373 | { |
| 374 | if( pActor->isPlayer() ) |
| 375 | pActor->getAsPlayer()->sendDebug( "Calling status receive for statusid#{0}", effectId ); |
| 376 | |
| 377 | script->onApply( *pActor ); |
| 378 | return true; |
| 379 | } |
| 380 | |
| 381 | return false; |
| 382 | } |
| 383 | |
| 384 | bool Sapphire::Scripting::ScriptMgr::onStatusTick( Entity::CharaPtr pChara, Sapphire::StatusEffect::StatusEffect& effect ) |
| 385 | { |
no test coverage detected