mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 06:47:45 +00:00
17 lines
No EOL
380 B
C++
17 lines
No EOL
380 B
C++
#include <ScriptObject.h>
|
|
#include <Actor/Player.h>
|
|
|
|
class ActionSprint3 :
|
|
public Sapphire::ScriptAPI::ActionScript
|
|
{
|
|
public:
|
|
ActionSprint3() :
|
|
Sapphire::ScriptAPI::ActionScript( 3 )
|
|
{
|
|
}
|
|
|
|
void onCastFinish( Sapphire::Entity::Player& player, Sapphire::Entity::Chara& targetActor ) override
|
|
{
|
|
player.addStatusEffectByIdIfNotExist( 50, 20000, player, 30 );
|
|
}
|
|
}; |