diff options
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 8 | ||||
-rw-r--r-- | src/actions/actions.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index adc84b15f..65de77689 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -84,6 +84,7 @@ #include "net/buysellhandler.h" #include "net/chathandler.h" #include "net/download.h" +#include "net/homunculushandler.h" #include "net/gamehandler.h" #include "net/inventoryhandler.h" #include "net/ipc.h" @@ -1601,6 +1602,13 @@ impHandler0(mercenaryToMaster) return true; } +impHandler0(homunculusToMaster) +{ + if (homunculusHandler != nullptr) + homunculusHandler->moveToMaster(); + return true; +} + impHandler(useItem) { const int itemId = atoi(event.args.c_str()); diff --git a/src/actions/actions.h b/src/actions/actions.h index bfacd0434..107f978aa 100644 --- a/src/actions/actions.h +++ b/src/actions/actions.h @@ -102,6 +102,7 @@ namespace Actions decHandler(uploadLog); decHandler(mercenaryFire); decHandler(mercenaryToMaster); + decHandler(homunculusToMaster); decHandler(useItem); decHandler(useItemInv); decHandler(invToStorage); |