summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-31 17:26:12 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-31 17:26:12 +0000
commit9c43f344ffa5fa92d9fe2ed2114eee4394cabfb0 (patch)
treedac6c18ddc31796a37514bd7b9e193db5ced4100 /src/map/status.c
parent7381b62a0f67308ce0b482c7fc42d36a0f1a7160 (diff)
downloadhercules-9c43f344ffa5fa92d9fe2ed2114eee4394cabfb0.tar.gz
hercules-9c43f344ffa5fa92d9fe2ed2114eee4394cabfb0.tar.bz2
hercules-9c43f344ffa5fa92d9fe2ed2114eee4394cabfb0.tar.xz
hercules-9c43f344ffa5fa92d9fe2ed2114eee4394cabfb0.zip
Fixed Wink of Charm, affected mobs will now follow caster during effect, bugreport:3127
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15336 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 40e083595..9a70ae470 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1344,8 +1344,9 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int
)
return 0;
- if (sc->data[SC_WINKCHARM] && target && !flag)
- { //Prevents skill usage
+ if (sc->data[SC_WINKCHARM] && target && !flag) { //Prevents skill usage
+ if( unit_bl2ud(src) && (unit_bl2ud(src))->walktimer == INVALID_TIMER )
+ unit_walktobl(src, map_id2bl(sc->data[SC_WINKCHARM]->val2), 3, 1);
clif_emotion(src, E_LV);
return 0;
}