mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
24 lines
No EOL
496 B
C++
24 lines
No EOL
496 B
C++
#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 )
|
|
{
|
|
}
|
|
|
|
void onExecute( Sapphire::Action::Action& action ) override
|
|
{
|
|
for( auto& chara : action.getHitActors() )
|
|
{
|
|
chara->takeDamage( chara->getMaxHp() * 0.34f );
|
|
}
|
|
}
|
|
};
|
|
|
|
EXPOSE_SCRIPT( ActionUnleash3621 ); |