mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-30 08:07:46 +00:00
Merge pull request #294 from DantestyleXD/action_return
Return (Action 6) now work (again?)
This commit is contained in:
commit
196433ae59
1 changed files with 15 additions and 0 deletions
15
src/servers/Scripts/action/ActionReturn6.cpp
Normal file
15
src/servers/Scripts/action/ActionReturn6.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <Script/NativeScriptApi.h>
|
||||
#include "../ScriptObject.h"
|
||||
#include <Actor/Player.h>
|
||||
|
||||
class ActionReturn6 : public ActionScript
|
||||
{
|
||||
public:
|
||||
ActionReturn6() : ActionScript( 6 )
|
||||
{}
|
||||
|
||||
void onCastFinish( Core::Entity::Player& player, Core::Entity::Chara& targetActor ) override
|
||||
{
|
||||
player.returnToHomepoint();
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue