summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorcsnv <ctt@csnv.es>2014-09-17 22:56:30 +0200
committercsnv <ctt@csnv.es>2014-09-17 22:56:30 +0200
commit964b47351ef2156423f6e0a68bfd3361283936c1 (patch)
treedc99c27c2f87ba5d1485a16a3b17a2f2efe53e6c /src/map/unit.c
parentddc52570a9bf694cdba6445bc02350a94856a583 (diff)
downloadhercules-964b47351ef2156423f6e0a68bfd3361283936c1.tar.gz
hercules-964b47351ef2156423f6e0a68bfd3361283936c1.tar.bz2
hercules-964b47351ef2156423f6e0a68bfd3361283936c1.tar.xz
hercules-964b47351ef2156423f6e0a68bfd3361283936c1.zip
Devotion statuses fixed. Cleaned some warnings. Unit range shortened!
- Now SC_AUTOGUARD and SC_REFLECTSHIELD won't have effect if the devotion range is too big. Bug report http://hercules.ws/board/tracker/issue-8345-about-devotion-status-tra/ - Cleaned some warnings - Due to the exploit of some client edits and with the feedback of some users, I can say it's safe to change back the range extra cell to 1. Thanks Juvia, KeyWorld.
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 8b74ff80c..12df6ab1f 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -316,7 +316,7 @@ int unit_walktoxy_timer(int tid, int64 tick, int id, intptr_t data) {
unit->attack(bl, tbl->id, ud->state.attack_continue);
}
} else { //Update chase-path
- unit->walktobl(bl, tbl, ud->chaserange, ud->state.walk_easy|(ud->state.attack_continue?2:0));
+ unit->walktobl(bl, tbl, ud->chaserange, ud->state.walk_easy|(ud->state.attack_continue? 1 : 0));
return 0;
}
} else {