From ad3c8a1ad28c40845125556bc23f0d5f089859cb Mon Sep 17 00:00:00 2001 From: csnv Date: Sat, 13 Sep 2014 19:11:12 +0200 Subject: Fix SO_VACUUM_EXTREME moves target into the center of the skill. Bug 8330: http://hercules.ws/board/tracker/issue-8330-extreme-vacuum-skill-behavior/ --- src/map/skill.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/map/skill.c b/src/map/skill.c index fc162d430..46b92c302 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -11156,6 +11156,10 @@ struct skill_unit_group* skill_unitsetting(struct block_list *src, uint16 skill_ case SO_WARMER: skill->clear_group(src, 8); break; + case SO_VACUUM_EXTREME: + val1 = x; + val2 = y; + break; case GN_WALLOFTHORN: if( flag&1 ) limit = 3000; @@ -12192,6 +12196,11 @@ int skill_unit_onplace_timer(struct skill_unit *src, struct block_list *bl, int6 } else { sg->limit -= 100 * tstatus->str/20; sc_start(ss, bl, SC_VACUUM_EXTREME, 100, sg->skill_lv, sg->limit); + + if (unit->movepos(bl, sg->val1, sg->val2, 0, 0)) { + clif->slide(bl, sg->val1, sg->val2); + clif->fixpos(bl); + } } break; -- cgit v1.2.3-70-g09d2