diff options
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r-- | src/net/eathena/skillhandler.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index d92fd697d..309a66c70 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -31,6 +31,7 @@ #include "gui/windows/skilldialog.h" +#include "net/eathena/menu.h" #include "net/eathena/messageout.h" #include "net/eathena/protocol.h" @@ -67,6 +68,7 @@ SkillHandler::SkillHandler() : SMSG_PLAYER_SKILL_PRODUCE_EFFECT, SMSG_SKILL_UNIT_UPDATE, SMSG_SKILL_ARROW_CREATE_LIST, + SMSG_PLAYER_SKILL_AUTO_SPELLS, 0 }; handledMessages = _messages; @@ -137,6 +139,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg) processSkillArrowCreateList(msg); break; + case SMSG_PLAYER_SKILL_AUTO_SPELLS: + processSkillAutoSpells(msg); + break; + default: break; } @@ -455,4 +461,14 @@ void SkillHandler::processSkillArrowCreateList(Net::MessageIn &msg) msg.readInt16("item id"); } +void SkillHandler::processSkillAutoSpells(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + for (int f = 0; f < 7; f ++) + msg.readInt32("skill id"); + + menu = MenuType::AutoSpell;; +} + } // namespace EAthena |