summaryrefslogtreecommitdiff
path: root/src/map/skill.h
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-10 03:05:29 +0200
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-05-13 05:18:02 +0200
commit9a64eca5235da46655ca64ba5916c6fd4d90208a (patch)
treea11a4aa10060e7b32553000dcbaf5c9fc52dd59b /src/map/skill.h
parentcfe2d8527ecc8eb8e6dfacc7e661c5ed1f08ddd9 (diff)
downloadhercules-9a64eca5235da46655ca64ba5916c6fd4d90208a.tar.gz
hercules-9a64eca5235da46655ca64ba5916c6fd4d90208a.tar.bz2
hercules-9a64eca5235da46655ca64ba5916c6fd4d90208a.tar.xz
hercules-9a64eca5235da46655ca64ba5916c6fd4d90208a.zip
Add skill_enabled_npc battle flag and implement usage
Diffstat (limited to 'src/map/skill.h')
-rw-r--r--src/map/skill.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/skill.h b/src/map/skill.h
index 4dbbaf147..e8360c91f 100644
--- a/src/map/skill.h
+++ b/src/map/skill.h
@@ -1733,6 +1733,13 @@ enum autocast_type {
AUTOCAST_ITEM, // Used for itemskill() script command.
};
+/** Constants for allowed skill use while interacting with NPC. **/
+enum skill_enabled_npc_flags {
+ SKILLENABLEDNPC_NONE = 0, //!< Don't allow using any skills while interacting with NPC.
+ SKILLENABLEDNPC_SELF = 1, //!< Allow using non-damaging self skills while interacting with NPC.
+ SKILLENABLEDNPC_ALL = 2, //!< Allow using all skills while interacting with NPC.
+};
+
/**
* Structures
**/