diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-01-20 10:08:00 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-02-09 23:46:56 +0100 |
commit | 38a504a04a2c864938ef3e105d0ce22332ff0b7a (patch) | |
tree | 1da723d240928039361e0c4f89e810ae2c93cc73 /src/map/pc.h | |
parent | 1098b588625774ca2cf4e05527b00fd4d0187919 (diff) | |
download | hercules-38a504a04a2c864938ef3e105d0ce22332ff0b7a.tar.gz hercules-38a504a04a2c864938ef3e105d0ce22332ff0b7a.tar.bz2 hercules-38a504a04a2c864938ef3e105d0ce22332ff0b7a.tar.xz hercules-38a504a04a2c864938ef3e105d0ce22332ff0b7a.zip |
Added a new option flag to itemskill() script command, to be able to cast a skill without cast time.
Diffstat (limited to 'src/map/pc.h')
-rw-r--r-- | src/map/pc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/pc.h b/src/map/pc.h index 4d7a7eef0..1540482c3 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -242,6 +242,7 @@ struct map_session_data { unsigned int lapine_ui : 1; unsigned int itemskill_conditions_checked : 1; // Used by itemskill() script command, to prevent second check of conditions after target was selected. unsigned int itemskill_no_conditions : 1; // Used by itemskill() script command, to ignore skill conditions and don't consume them. + unsigned int itemskill_no_casttime : 1; // Used by itemskill() script command, to cast skill instantaneously. } state; struct { unsigned char no_weapon_damage, no_magic_damage, no_misc_damage; @@ -647,7 +648,7 @@ END_ZEROED_BLOCK; VECTOR_DECL(int) title_ids; /* - * itemskill_conditions_checked/itemskill_no_conditions abuse prevention. + * itemskill_conditions_checked/itemskill_no_conditions/itemskill_no_casttime abuse prevention. * If a skill, casted by itemskill() script command, is aborted while target selection, * the map server gets no notification where these states could be unset. * Thus we need this helper variables to prevent abusing these states for next skill cast. |