summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-09-07 23:39:56 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-09-07 23:39:56 +0000
commite2915a844d1bbcdbc0eae324007a0235ed1ce1fe (patch)
tree4c75eaf1b66f75d08671ca77e5feb550a88e7d4c
parentbe680a4b1e60147fb3573d1a09593de2fdd638df (diff)
downloadhercules-e2915a844d1bbcdbc0eae324007a0235ed1ce1fe.tar.gz
hercules-e2915a844d1bbcdbc0eae324007a0235ed1ce1fe.tar.bz2
hercules-e2915a844d1bbcdbc0eae324007a0235ed1ce1fe.tar.xz
hercules-e2915a844d1bbcdbc0eae324007a0235ed1ce1fe.zip
Added MD_TARGETWEAK to list of modes not to give a player when calculating player data.
This makes evilclones aggressive towards players. (bugreport:3280) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14402 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/status.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index c4fb28d31..a880dde69 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
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]
* Ensure a pointer is valid within map_readfromcache() before attempting to access its members. [Paradox924X]
2010/09/06
* Rev. 14400 Implemented Icescope's fix for devotion, reflect damage is no longer absorbed by the devoter. (bugreport:3189) [L0ne_W0lf]
diff --git a/src/map/status.c b/src/map/status.c
index 1e40018a5..1e9eaf178 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1769,7 +1769,7 @@ int status_calc_pc_(struct map_session_data* sd, bool first)
//FIXME: Most of these stuff should be calculated once, but how do I fix the memset above to do that? [Skotlex]
status->speed = DEFAULT_WALK_SPEED;
//Give them all modes except these (useful for clones)
- status->mode = MD_MASK&~(MD_BOSS|MD_PLANT|MD_DETECTOR|MD_ANGRY);
+ status->mode = MD_MASK&~(MD_BOSS|MD_PLANT|MD_DETECTOR|MD_ANGRY|MD_TARGETWEAK);
status->size = (sd->class_&JOBL_BABY)?0:1;
if (battle_config.character_size && pc_isriding(sd)) { //[Lupus]