summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-01-20 09:49:23 +0100
committerHaru <haru@dotalux.com>2020-02-09 23:46:56 +0100
commit1098b588625774ca2cf4e05527b00fd4d0187919 (patch)
tree8acbfabdcbbf2cd7188ea02ff5ef084a6c022052 /src/map/script.h
parente164b55dbb908c0006f0ca4e2e74e9995f318d57 (diff)
downloadhercules-1098b588625774ca2cf4e05527b00fd4d0187919.tar.gz
hercules-1098b588625774ca2cf4e05527b00fd4d0187919.tar.bz2
hercules-1098b588625774ca2cf4e05527b00fd4d0187919.tar.xz
hercules-1098b588625774ca2cf4e05527b00fd4d0187919.zip
Fixed skill conditions check and <flag> parameter in itemskill() script command.
* itemskill() script command should check for the skill's conditions and also consumes them. SP are not consumed. * The same applies to Hocus-pocus skill. Conditions should be checked and consumed, SP are not consumed. * This was bugged for more than 6 years now. See linked bug report and commits. Related bug: * https://herc.ws/oldboard/tracker/issue-7210-itemskill-command-does-not-check-for-required-items/ Related commits: * https://github.com/HerculesWS/Hercules/commit/b864056b8d088660fca9129bddad477732ed8df9 * https://github.com/HerculesWS/Hercules/commit/07272f7a16db87970583286db03167ca79604a69
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h
index 8d7669d68..c981a895d 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -565,6 +565,14 @@ enum mado_type {
};
/**
+ * Option flags for itemskill() script command.
+ **/
+enum itemskill_flag {
+ ISF_NONE = 0x00,
+ ISF_IGNORECONDITIONS = 0x01, // Ignore skill conditions and don't consume them.
+};
+
+/**
* Structures
**/