diff options
| author | Philipp Sehmisch <tmw@crushnet.org> | 2008-11-01 19:03:14 +0000 |
|---|---|---|
| committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-11-01 19:03:14 +0000 |
| commit | 7cdecda38dc75dd855a45af6faad14d1c1e4e72f (patch) | |
| tree | 9fe6a6b31afcc0a710e6c327ad29a5c91db959ef /src/game-server/gamehandler.cpp | |
| parent | ad5efe104cd7639009622393f16bfd93075fcb34 (diff) | |
Magic implementation roadmap phase 1 and 2 (calling a script function on PGMSG_USE_SPECIAL)
Diffstat (limited to 'src/game-server/gamehandler.cpp')
| -rw-r--r-- | src/game-server/gamehandler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game-server/gamehandler.cpp b/src/game-server/gamehandler.cpp index 9fd93a4..005c19c 100644 --- a/src/game-server/gamehandler.cpp +++ b/src/game-server/gamehandler.cpp @@ -321,6 +321,14 @@ void GameHandler::processMessage(NetComputer *comp, MessageIn &message) computer.character->setAction(Being::ATTACK); } break; + case PGMSG_USE_SPECIAL: + { + int specialID = message.readByte(); + LOG_DEBUG("Character " << computer.character->getPublicID() + << " tries to use his special attack "<<specialID); + computer.character->useSpecial(specialID); + } + case PGMSG_ACTION_CHANGE: { Being::Action action = (Being::Action)message.readByte(); |
