summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-04-21 05:39:22 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-10 21:23:47 +0200
commitf52be55dc66ff5adcf6e00f55abc5d91bd89e798 (patch)
treee697467cf5c35befb001a243936bce922d456711 /src/map/script.c
parent0009d8ed95dba17c4f559c11de58ee08f508e4f8 (diff)
downloadhercules-f52be55dc66ff5adcf6e00f55abc5d91bd89e798.tar.gz
hercules-f52be55dc66ff5adcf6e00f55abc5d91bd89e798.tar.bz2
hercules-f52be55dc66ff5adcf6e00f55abc5d91bd89e798.tar.xz
hercules-f52be55dc66ff5adcf6e00f55abc5d91bd89e798.zip
Add data to auto-cast vector
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 7ffaced7b..bc42cb49e 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -11059,6 +11059,9 @@ static BUILDIN(itemskill)
sd->autocast.itemskill_instant_cast = ((flag & ISF_INSTANTCAST) == ISF_INSTANTCAST);
sd->autocast.itemskill_cast_on_self = ((flag & ISF_CASTONSELF) == ISF_CASTONSELF);
+ VECTOR_ENSURE(sd->auto_cast, 1, 1);
+ VECTOR_PUSH(sd->auto_cast, sd->autocast);
+
clif->item_skill(sd, sd->autocast.skill_id, sd->autocast.skill_lv);
return true;