summaryrefslogtreecommitdiff
path: root/src/net/eathena/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-22 21:59:47 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-22 21:59:47 +0300
commit8bc005b59bd27533a19354318e17a5cb5cfa09c5 (patch)
treef2c7357610554a414b3ce61bd151f1e9976290f2 /src/net/eathena/beinghandler.cpp
parent4545b34b1533657d58788285a38b5128f49070a8 (diff)
downloadplus-8bc005b59bd27533a19354318e17a5cb5cfa09c5.tar.gz
plus-8bc005b59bd27533a19354318e17a5cb5cfa09c5.tar.bz2
plus-8bc005b59bd27533a19354318e17a5cb5cfa09c5.tar.xz
plus-8bc005b59bd27533a19354318e17a5cb5cfa09c5.zip
Add pet actor type. For now it works almost same like monsters.
Diffstat (limited to 'src/net/eathena/beinghandler.cpp')
-rw-r--r--src/net/eathena/beinghandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp
index 0f924d5f4..23e7d1149 100644
--- a/src/net/eathena/beinghandler.cpp
+++ b/src/net/eathena/beinghandler.cpp
@@ -310,6 +310,9 @@ Being *BeingHandler::createBeing2(const int id,
case BeingType::MERSOL:
type = ActorType::Mercenary;
break;
+ case BeingType::PET:
+ type = ActorType::Pet;
+ break;
case BeingType::ITEM:
case BeingType::SKILL:
case BeingType::ELEMENTAL:
@@ -317,7 +320,6 @@ Being *BeingHandler::createBeing2(const int id,
static_cast<int>(beingType), static_cast<int>(job));
break;
case BeingType::CHAT:
- case BeingType::PET:
case BeingType::HOMUN:
default:
type = ActorType::Monster;