diff options
author | Michieru <Michieru@users.noreply.github.com> | 2014-09-13 20:15:05 +0200 |
---|---|---|
committer | Michieru <Michieru@users.noreply.github.com> | 2014-09-13 20:15:05 +0200 |
commit | 28db0ae06be658eef0c65fa25efe6306876da93a (patch) | |
tree | 8b7fdb7227998d0bb135c33295d43163d7c8819a | |
parent | aba829d912c3392a0fdd5dff2a834559e88a5506 (diff) | |
parent | ad3c8a1ad28c40845125556bc23f0d5f089859cb (diff) | |
download | hercules-28db0ae06be658eef0c65fa25efe6306876da93a.tar.gz hercules-28db0ae06be658eef0c65fa25efe6306876da93a.tar.bz2 hercules-28db0ae06be658eef0c65fa25efe6306876da93a.tar.xz hercules-28db0ae06be658eef0c65fa25efe6306876da93a.zip |
Merge pull request #348 from csnv/somefixes
Fix SO_VACUUM_EXTREME moves target into the center of the skill. Bug 833...
-rw-r--r-- | src/map/skill.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; |