summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-01-20 10:30:03 +0100
committerHaru <haru@dotalux.com>2020-02-09 23:46:56 +0100
commita67dddb0c21be9c6ceeb174db023d3b9db4a9db9 (patch)
tree670ad532f64967f2c6ace1ba678c4e6f57a4c1d2 /src/map/unit.c
parent38a504a04a2c864938ef3e105d0ce22332ff0b7a (diff)
downloadhercules-a67dddb0c21be9c6ceeb174db023d3b9db4a9db9.tar.gz
hercules-a67dddb0c21be9c6ceeb174db023d3b9db4a9db9.tar.bz2
hercules-a67dddb0c21be9c6ceeb174db023d3b9db4a9db9.tar.xz
hercules-a67dddb0c21be9c6ceeb174db023d3b9db4a9db9.zip
Added a new option flag to itemskill() script command to be able to forcefully cast skill on on invoking character.
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 2 insertions, 0 deletions
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;