2019-04-07 16:04:36 +10:00
|
|
|
#include <Script/NativeScriptApi.h>
|
|
|
|
#include <ScriptObject.h>
|
|
|
|
#include <Actor/Player.h>
|
|
|
|
#include <Action/Action.h>
|
|
|
|
|
|
|
|
class ActionUnleash3621 :
|
|
|
|
public Sapphire::ScriptAPI::ActionScript
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ActionUnleash3621() :
|
|
|
|
Sapphire::ScriptAPI::ActionScript( 3621 )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-06-02 00:34:22 +10:00
|
|
|
void onExecute( Sapphire::World::Action::Action& action ) override
|
2019-04-07 16:04:36 +10:00
|
|
|
{
|
2019-04-07 16:31:09 +10:00
|
|
|
for( auto& chara : action.getHitCharas() )
|
2019-04-07 16:04:36 +10:00
|
|
|
{
|
2019-04-07 16:16:52 +10:00
|
|
|
chara->takeDamage( chara->getMaxHp() * 0.34f );
|
2019-04-07 16:04:36 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
EXPOSE_SCRIPT( ActionUnleash3621 );
|