2019-02-10 23:28:15 +11:00
|
|
|
#include <Script/NativeScriptApi.h>
|
|
|
|
#include <ScriptObject.h>
|
|
|
|
#include <Actor/Player.h>
|
2019-02-10 23:53:44 +11:00
|
|
|
#include <Action/Action.h>
|
2019-02-10 23:28:15 +11:00
|
|
|
|
|
|
|
class ActionHeavyShot97 :
|
|
|
|
public Sapphire::ScriptAPI::ActionScript
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ActionHeavyShot97() :
|
|
|
|
Sapphire::ScriptAPI::ActionScript( 97 )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void onCastFinish( Sapphire::Entity::Chara& source, Sapphire::Action::Action& currentAction ) override
|
|
|
|
{
|
|
|
|
if( auto player = source.getAsPlayer() )
|
|
|
|
player->sendDebug( "cast finished" );
|
|
|
|
}
|
|
|
|
|
|
|
|
void onCharaHit( Sapphire::Entity::Chara& sourceActor, Sapphire::Entity::Chara& hitActor,
|
|
|
|
Sapphire::Action::Action& currentAction ) override
|
|
|
|
{
|
2019-02-10 23:53:44 +11:00
|
|
|
currentAction.damageTarget( 100, hitActor );
|
2019-02-10 23:28:15 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|