diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-01-26 21:52:43 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-02-09 23:55:30 +0100 |
commit | 7b003f2028906218bb6cff68e5e97ec47ad6681e (patch) | |
tree | b7e6da8dd38bfc407acf629909d2316adf8ac016 /src/map/script.c | |
parent | 26eae1d9e811f3171078c675f233be1c0faa4109 (diff) | |
download | hercules-7b003f2028906218bb6cff68e5e97ec47ad6681e.tar.gz hercules-7b003f2028906218bb6cff68e5e97ec47ad6681e.tar.bz2 hercules-7b003f2028906218bb6cff68e5e97ec47ad6681e.tar.xz hercules-7b003f2028906218bb6cff68e5e97ec47ad6681e.zip |
Added pc_itemskill_clear() function.
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/map/script.c b/src/map/script.c index b87a46785..c1eb2e8b7 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11007,7 +11007,7 @@ static BUILDIN(itemskill) int flag = script_hasdata(st, 4) ? script_getnum(st, 4) : ISF_NONE; - sd->state.itemskill_no_conditions = ((flag & ISF_IGNORECONDITIONS) == ISF_IGNORECONDITIONS) ? 1 : 0; // Unset in unit_skilluse_id()/unit_skilluse_pos() if skill was not aborted while target selection. + sd->state.itemskill_no_conditions = ((flag & ISF_IGNORECONDITIONS) == ISF_IGNORECONDITIONS) ? 1 : 0; // Unset in pc_itemskill_clear(). if (sd->state.itemskill_no_conditions == 0) { if (skill->check_condition_castbegin(sd, sd->skillitem, sd->skillitemlv) == 0 @@ -11015,14 +11015,13 @@ static BUILDIN(itemskill) return true; } - sd->state.itemskill_conditions_checked = 1; // Unset in unit_skilluse_id()/unit_skilluse_pos() if skill was not aborted while target selection. + sd->state.itemskill_conditions_checked = 1; // Unset in pc_itemskill_clear(). } - sd->state.itemskill_no_casttime = ((flag & ISF_INSTANTCAST) == ISF_INSTANTCAST) ? 1 : 0; // Unset in unit_skilluse_id()/unit_skilluse_pos() if skill was not aborted while target selection. - sd->state.itemskill_castonself = ((flag & ISF_CASTONSELF) == ISF_CASTONSELF) ? 1 : 0; // Unset in unit_skilluse_id()/unit_skilluse_pos() if skill was not aborted while target selection. + sd->state.itemskill_no_casttime = ((flag & ISF_INSTANTCAST) == ISF_INSTANTCAST) ? 1 : 0; // Unset in pc_itemskill_clear(). + sd->state.itemskill_castonself = ((flag & ISF_CASTONSELF) == ISF_CASTONSELF) ? 1 : 0; // Unset in pc_itemskill_clear(). - // itemskill_conditions_checked/itemskill_no_conditions/itemskill_no_casttime/itemskill_castonself abuse prevention. - // Unset in unit_skilluse_id()/unit_skilluse_pos() if skill was not aborted while target selection. + // itemskill_conditions_checked/itemskill_no_conditions/itemskill_no_casttime/itemskill_castonself abuse prevention. Unset in pc_itemskill_clear(). sd->itemskill_id = sd->skillitem; sd->itemskill_lv = sd->skillitemlv; |