mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 06:47:45 +00:00
24 lines
508 B
C++
24 lines
508 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->setHp( chara->getHp() - chara->getMaxHp() * 0.34f );
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
EXPOSE_SCRIPT( ActionUnleash3621 );
|