diff options
author | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-09-09 03:52:21 +0000 |
---|---|---|
committer | Paradox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-09-09 03:52:21 +0000 |
commit | 81bd882bb564b34cfa7ac55eaf6551d46144938e (patch) | |
tree | 784502b41c17575c980acef4564b720eed9a793c | |
parent | d30824c418322dad9e03e0cc2b86593499103a0a (diff) | |
download | hercules-81bd882bb564b34cfa7ac55eaf6551d46144938e.tar.gz hercules-81bd882bb564b34cfa7ac55eaf6551d46144938e.tar.bz2 hercules-81bd882bb564b34cfa7ac55eaf6551d46144938e.tar.xz hercules-81bd882bb564b34cfa7ac55eaf6551d46144938e.zip |
All mobs whose display sprites are those of a job id will now appropriately be identified to the client as players, not mobs.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14405 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 3 | ||||
-rw-r--r-- | src/map/clif.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index a880dde69..fbf59e359 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,9 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2010/09/08 + * All mobs whose display sprites are those of a job id will now appropriately be identified to the client as players, not mobs. [Paradox924X] + * Updated License from GNU GPLv2 to GNU GPLv3. [Paradox924X] 2010/09/07 * Added MD_TARGETWEAK to list of modes not to give a player when calculating player data. - This makes evilclones aggressive towards players. (bugreport:3280) [Paradox924X] diff --git a/src/map/clif.c b/src/map/clif.c index d6cb41ce4..58661057b 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -168,7 +168,7 @@ static inline unsigned char clif_bl_type(struct block_list *bl) { case BL_ITEM: return 0x2; //ITEM_TYPE case BL_SKILL: return 0x3; //SKILL_TYPE case BL_CHAT: return 0x4; //UNKNOWN_TYPE - case BL_MOB: return pcdb_checkid(((TBL_MOB*)bl)->class_)?0x0:0x5; //NPC_MOB_TYPE + case BL_MOB: return pcdb_checkid(((TBL_MOB*)bl)->vd->class_)?0x0:0x5; //NPC_MOB_TYPE case BL_NPC: return 0x6; //NPC_EVT_TYPE case BL_PET: return 0x7; //NPC_PET_TYPE case BL_HOM: return 0x8; //NPC_HOM_TYPE |