mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-04 09:47:46 +00:00
Small reformmating of scriptmanager
This commit is contained in:
parent
f7dc992103
commit
ea91f7e141
1 changed files with 0 additions and 6 deletions
|
@ -258,7 +258,6 @@ bool Core::Scripting::ScriptManager::onEventItem( Entity::Player& player, uint32
|
||||||
player.eventStart( targetId, eventId, Event::EventHandler::Item, 0, 0 );
|
player.eventStart( targetId, eventId, Event::EventHandler::Item, 0, 0 );
|
||||||
|
|
||||||
script->onEventItem( player, eventItemId, eventId, castTime, targetId );
|
script->onEventItem( player, eventItemId, eventId, castTime, targetId );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -299,7 +298,6 @@ bool Core::Scripting::ScriptManager::onCastFinish( Entity::Player& player, Entit
|
||||||
|
|
||||||
if( script )
|
if( script )
|
||||||
script->onCastFinish( player, *pTarget );
|
script->onCastFinish( player, *pTarget );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -313,7 +311,6 @@ bool Core::Scripting::ScriptManager::onStatusReceive( Entity::ActorPtr pActor, u
|
||||||
pActor->getAsPlayer()->sendDebug( "Calling status receive for statusid: " + std::to_string( effectId ) );
|
pActor->getAsPlayer()->sendDebug( "Calling status receive for statusid: " + std::to_string( effectId ) );
|
||||||
|
|
||||||
script->onApply( *pActor );
|
script->onApply( *pActor );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -329,7 +326,6 @@ bool Core::Scripting::ScriptManager::onStatusTick( Entity::ActorPtr pActor, Core
|
||||||
pActor->getAsPlayer()->sendDebug( "Calling status tick for statusid: " + std::to_string( effect.getId() ) );
|
pActor->getAsPlayer()->sendDebug( "Calling status tick for statusid: " + std::to_string( effect.getId() ) );
|
||||||
|
|
||||||
script->onTick( *pActor );
|
script->onTick( *pActor );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -345,7 +341,6 @@ bool Core::Scripting::ScriptManager::onStatusTimeOut( Entity::ActorPtr pActor, u
|
||||||
pActor->getAsPlayer()->sendDebug( "Calling status timeout for statusid: " + std::to_string( effectId ) );
|
pActor->getAsPlayer()->sendDebug( "Calling status timeout for statusid: " + std::to_string( effectId ) );
|
||||||
|
|
||||||
script->onExpire( *pActor );
|
script->onExpire( *pActor );
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -358,7 +353,6 @@ bool Core::Scripting::ScriptManager::onZoneInit( ZonePtr pZone )
|
||||||
if( script )
|
if( script )
|
||||||
{
|
{
|
||||||
script->onZoneInit();
|
script->onZoneInit();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue