1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 22:37:45 +00:00
sapphire/src/scripts/action/darkknight/ActionUnleash3621.cpp

24 lines
496 B
C++
Raw Normal View History

#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 );