summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorKenpachi Developer <Kenpachi.Developer@gmx.de>2020-03-11 19:01:30 +0100
committerKenpachi Developer <Kenpachi.Developer@gmx.de>2020-03-11 19:01:30 +0100
commite0ce59dbbed70b40b06f7e75e7c76c23feec0fc5 (patch)
tree19d96291fc068d0548aa0885e984bbd1fdd694be /src/map/pc.h
parent81a2b776cebb41d52a90994b605d9b0c5925acb5 (diff)
downloadhercules-e0ce59dbbed70b40b06f7e75e7c76c23feec0fc5.tar.gz
hercules-e0ce59dbbed70b40b06f7e75e7c76c23feec0fc5.tar.bz2
hercules-e0ce59dbbed70b40b06f7e75e7c76c23feec0fc5.tar.xz
hercules-e0ce59dbbed70b40b06f7e75e7c76c23feec0fc5.zip
Add structure for auto-cast related data
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 8d1ae3607..1fbc6c579 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -173,6 +173,17 @@ struct pc_combos {
int id; /* this combo id */
};
+/** Auto-cast related data. **/
+struct autocast_data {
+ enum autocast_type type; // The auto-cast type.
+ int skill_id; // The auto-cast skill ID.
+ int skill_lv; // The auto-cast skill level.
+ bool itemskill_conditions_checked; // Used by itemskill() script command, to prevent second check of conditions after target was selected.
+ bool itemskill_check_conditions; // Used by itemskill() script command, to check skill conditions and consume them.
+ bool itemskill_instant_cast; // Used by itemskill() script command, to cast skill instantaneously.
+ bool itemskill_cast_on_self; // Used by itemskill() script command, to forcefully cast skill on invoking character.
+};
+
struct map_session_data {
struct block_list bl;
struct unit_data ud;