Skip to content

Commit

Permalink
Added MD_TARGETWEAK to list of modes not to give a player when calcul…
Browse files Browse the repository at this point in the history
…ating 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
  • Loading branch information
Paradox924X authored and Paradox924X committed Sep 7, 2010
1 parent be680a4 commit e2915a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changelog-Trunk.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/map/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit e2915a8

Please sign in to comment.