summaryrefslogtreecommitdiff
path: root/src/map/skill.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-06-01 04:18:52 +0200
committerGitHub <noreply@github.com>2020-06-01 04:18:52 +0200
commit530af7e587899f66854447e2b8251cbf12c481c3 (patch)
tree74453a3f8e6fdeaa3349132b820e29ec8fee8d7b /src/map/skill.h
parent8a4667a265227587dcc288f75dfe948f5df46034 (diff)
parent9a64eca5235da46655ca64ba5916c6fd4d90208a (diff)
downloadhercules-530af7e587899f66854447e2b8251cbf12c481c3.tar.gz
hercules-530af7e587899f66854447e2b8251cbf12c481c3.tar.bz2
hercules-530af7e587899f66854447e2b8251cbf12c481c3.tar.xz
hercules-530af7e587899f66854447e2b8251cbf12c481c3.zip
Merge pull request #2718 from Kenpachi2k13/prere_use_items_skills_in_npc
Add/extend battle flags to enable item/skill usage while interacting with NPC
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 b9178321d..b505412b6 100644
--- a/src/map/skill.h
+++ b/src/map/skill.h
@@ -1737,6 +1737,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
**/