1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-07 11:17:46 +00:00
sapphire/src/scripts/action/drg/ActionBloodOfTheDragon3553.cpp
2023-03-07 05:15:48 +09:00

27 lines
No EOL
639 B
C++

#include <Script/NativeScriptApi.h>
#include <ScriptObject.h>
#include <Actor/Player.h>
#include <Action/Action.h>
#include <Math/CalcStats.h>
using namespace Sapphire;
class ActionBloodOfTheDragon3553 :
public ScriptAPI::ActionScript
{
public:
ActionBloodOfTheDragon3553() :
ScriptAPI::ActionScript( 3553 )
{
}
void onExecute( Sapphire::World::Action::Action& action ) override
{
auto pPlayer = action.getSourceChara()->getAsPlayer();
pPlayer->gaugeDrgSetDragonTimer( 30000, true );
pPlayer->gaugeDrgSetDragonState( Common::DrgState::BloodOfTheDragon );
}
};
EXPOSE_SCRIPT( ActionBloodOfTheDragon3553 );