diff options
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index b8a7979a7..18855e3b0 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11002,6 +11002,7 @@ static BUILDIN(itemskill) return true; pc->itemskill_clear(sd); + sd->autocast.type = AUTOCAST_ITEM; sd->skillitem = script_isstringtype(st, 2) ? skill->name2id(script_getstr(st, 2)) : script_getnum(st, 2); sd->skillitemlv = script_getnum(st, 3); sd->state.itemskill_conditions_checked = 0; // Skill casting items will check the conditions prior to the target selection in AEGIS. Thus we need a flag to prevent checking them twice. |