diff options
author | David Athay <ko2fan@gmail.com> | 2009-05-18 18:18:23 +0100 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2009-05-18 18:18:23 +0100 |
commit | 72660d2c33773f0f74663efe6f9ac47648cdf283 (patch) | |
tree | e21d5a283eefaa5767d942f602c718eae42cbd4a /src/net/tmwserv/playerhandler.cpp | |
parent | e7df8c9dd7ebc14c1263c19c6a238ebcf4fd9465 (diff) | |
download | mana-72660d2c33773f0f74663efe6f9ac47648cdf283.tar.gz mana-72660d2c33773f0f74663efe6f9ac47648cdf283.tar.bz2 mana-72660d2c33773f0f74663efe6f9ac47648cdf283.tar.xz mana-72660d2c33773f0f74663efe6f9ac47648cdf283.zip |
Added target combat
Diffstat (limited to 'src/net/tmwserv/playerhandler.cpp')
-rw-r--r-- | src/net/tmwserv/playerhandler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/tmwserv/playerhandler.cpp b/src/net/tmwserv/playerhandler.cpp index b697e8a8..543d18d8 100644 --- a/src/net/tmwserv/playerhandler.cpp +++ b/src/net/tmwserv/playerhandler.cpp @@ -332,9 +332,11 @@ void PlayerHandler::handleMapChangeMessage(MessageIn &msg) viewport->scrollBy(scrollOffsetX, scrollOffsetY); } -void PlayerHandler::attack(Being *being) +void PlayerHandler::attack(int id) { - // TODO + MessageOut msg(PGMSG_ATTACK); + msg.writeInt16(id); + Net::GameServer::connection->send(msg); } void PlayerHandler::emote(int emoteId) |