2018-06-18 13:14:11 +00:00
|
|
|
#include <ScriptObject.h>
|
2018-03-07 08:14:42 +01:00
|
|
|
#include <Actor/Player.h>
|
|
|
|
|
2018-08-29 21:40:59 +02:00
|
|
|
class ActionSprint3 :
|
2018-11-13 21:34:44 +11:00
|
|
|
public Sapphire::ScriptAPI::ActionScript
|
2018-03-07 08:14:42 +01:00
|
|
|
{
|
|
|
|
public:
|
2018-08-29 21:40:59 +02:00
|
|
|
ActionSprint3() :
|
2018-11-13 21:34:44 +11:00
|
|
|
Sapphire::ScriptAPI::ActionScript( 3 )
|
2018-08-29 21:40:59 +02:00
|
|
|
{
|
|
|
|
}
|
2018-03-07 08:14:42 +01:00
|
|
|
|
2018-11-29 16:55:48 +01:00
|
|
|
void onCastFinish( Sapphire::Entity::Player& player, Sapphire::Entity::Chara& targetActor ) override
|
2018-08-29 21:40:59 +02:00
|
|
|
{
|
|
|
|
player.addStatusEffectByIdIfNotExist( 50, 20000, player, 30 );
|
|
|
|
}
|
2018-03-07 08:14:42 +01:00
|
|
|
};
|