From a67dddb0c21be9c6ceeb174db023d3b9db4a9db9 Mon Sep 17 00:00:00 2001 From: Kenpachi Developer Date: Mon, 20 Jan 2020 10:30:03 +0100 Subject: Added a new option flag to itemskill() script command to be able to forcefully cast skill on on invoking character. --- src/map/unit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index ee721bb64..3ad94d20a 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -1052,6 +1052,7 @@ static int unit_skilluse_id(struct block_list *src, int target_id, uint16 skill_ sd->state.itemskill_conditions_checked = 0; sd->state.itemskill_no_conditions = 0; sd->state.itemskill_no_casttime = 0; + sd->state.itemskill_castonself = 0; } return ret; @@ -1696,6 +1697,7 @@ static int unit_skilluse_pos(struct block_list *src, short skill_x, short skill_ sd->state.itemskill_conditions_checked = 0; sd->state.itemskill_no_conditions = 0; sd->state.itemskill_no_casttime = 0; + sd->state.itemskill_castonself = 0; } return ret; -- cgit v1.2.3-60-g2f50