diff options
author | shennetsind <ind@henn.et> | 2013-01-28 17:37:22 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-01-28 17:37:22 -0200 |
commit | 9f75e121fd20aaa20e337c8664ba9a57fe90fe21 (patch) | |
tree | e9ab1c0a067165a785e2db5f67ef8b46273cb031 /src/map/skill.c | |
parent | c1e85710adac6f38eacd5b27b2236415abcfc237 (diff) | |
download | hercules-9f75e121fd20aaa20e337c8664ba9a57fe90fe21.tar.gz hercules-9f75e121fd20aaa20e337c8664ba9a57fe90fe21.tar.bz2 hercules-9f75e121fd20aaa20e337c8664ba9a57fe90fe21.tar.xz hercules-9f75e121fd20aaa20e337c8664ba9a57fe90fe21.zip |
Fixed Bug #4832
Fixed Ankle Snare to behave as in official servers, you only stop walking when you reach your destination and activates all other traps in the path.
http://hercules.ws/board/tracker/issue-4832-hunter-ht-anklesnare-serious-bug/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/skill.c')
-rw-r--r-- | src/map/skill.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 8e0bbabeb..5f3036565 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -11445,8 +11445,10 @@ int skill_unit_onplace_timer (struct skill_unit *src, struct block_list *bl, uns const struct TimerData* td = tsc->data[type]?get_timer(tsc->data[type]->timer):NULL; if( td ) sec = DIFF_TICK(td->tick, tick); - unit_movepos(bl, src->bl.x, src->bl.y, 0, 0); - clif_fixpos(bl); + if( sg->unit_id == UNT_MANHOLE ) { + unit_movepos(bl, src->bl.x, src->bl.y, 0, 0); + clif_fixpos(bl); + } sg->val2 = bl->id; } else sec = 3000; //Couldn't trap it? |