diff options
-rw-r--r-- | src/being/actortype.h | 3 | ||||
-rw-r--r-- | src/being/being.cpp | 2 | ||||
-rw-r--r-- | src/net/eathena/beinghandler.cpp | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/being/actortype.h b/src/being/actortype.h index f39216d32..6b6acce88 100644 --- a/src/being/actortype.h +++ b/src/being/actortype.h @@ -35,7 +35,8 @@ namespace ActorType LocalPet, Pet, Avatar, - Mercenary + Mercenary, + Homunculus }; } // namespace ActorType diff --git a/src/being/being.cpp b/src/being/being.cpp index fd71e5f9a..869d7d8b1 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -303,7 +303,7 @@ void Being::setSubtype(const uint16_t subtype, const uint8_t look) mSubType = subtype; mLook = look; - if (mType == ActorType::Monster) + if (mType == ActorType::Monster || mType == ActorType::Homunculus) { mInfo = MonsterDB::get(mSubType); if (mInfo) diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index 23e7d1149..c51651f38 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -313,6 +313,9 @@ Being *BeingHandler::createBeing2(const int id, case BeingType::PET: type = ActorType::Pet; break; + case BeingType::HOMUN: + type = ActorType::Homunculus; + break; case BeingType::ITEM: case BeingType::SKILL: case BeingType::ELEMENTAL: @@ -320,7 +323,6 @@ Being *BeingHandler::createBeing2(const int id, static_cast<int>(beingType), static_cast<int>(job)); break; case BeingType::CHAT: - case BeingType::HOMUN: default: type = ActorType::Monster; logger->log("not supported object type: %d, job: %d", |