diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-03-11 20:53:34 +0100 |
---|---|---|
committer | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-03-14 22:35:08 +0100 |
commit | 80e505df06aab94b74210cc2f0e0651d6b6feb5f (patch) | |
tree | 9d0641e1ea582b74003b52b02bb43751bea5dd7d /src/map/script.c | |
parent | 3e847676d726c0e38782ce3708be430289972405 (diff) | |
download | hercules-80e505df06aab94b74210cc2f0e0651d6b6feb5f.tar.gz hercules-80e505df06aab94b74210cc2f0e0651d6b6feb5f.tar.bz2 hercules-80e505df06aab94b74210cc2f0e0651d6b6feb5f.tar.xz hercules-80e505df06aab94b74210cc2f0e0651d6b6feb5f.zip |
Add map_session_data->autocast.skill_id/_lv assignments
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c index 18855e3b0..44cab8429 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11003,6 +11003,8 @@ static BUILDIN(itemskill) pc->itemskill_clear(sd); sd->autocast.type = AUTOCAST_ITEM; + sd->autocast.skill_id = script_isstringtype(st, 2) ? skill->name2id(script_getstr(st, 2)) : script_getnum(st, 2); + sd->autocast.skill_lv = script_getnum(st, 3); 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. |