summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/beinghandler.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp
index bae14a05..71369031 100644
--- a/src/net/beinghandler.cpp
+++ b/src/net/beinghandler.cpp
@@ -209,7 +209,9 @@ void BeingHandler::handleMessage(MessageIn *msg)
if (dstBeing == player_node->getTarget())
player_node->stopAttack();
- if (!(msg->readInt8() == 1))
+ if (msg->readInt8() == 1)
+ dstBeing->setAction(Being::DEAD);
+ else
beingManager->destroyBeing(dstBeing);
break;
@@ -443,11 +445,6 @@ void BeingHandler::handleMessage(MessageIn *msg)
{
switch (msg->readInt8())
{
- case 1:
- if (dstBeing->getType() != Being::NPC)
- dstBeing->setAction(Being::DEAD);
- break;
-
case 2:
dstBeing->setAction(Being::SIT);
break;