diff options
author | Kenpachi Developer <Kenpachi.Developer@gmx.de> | 2020-01-20 10:30:03 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2020-02-09 23:46:56 +0100 |
commit | a67dddb0c21be9c6ceeb174db023d3b9db4a9db9 (patch) | |
tree | 670ad532f64967f2c6ace1ba678c4e6f57a4c1d2 /src/map/pc.h | |
parent | 38a504a04a2c864938ef3e105d0ce22332ff0b7a (diff) | |
download | hercules-a67dddb0c21be9c6ceeb174db023d3b9db4a9db9.tar.gz hercules-a67dddb0c21be9c6ceeb174db023d3b9db4a9db9.tar.bz2 hercules-a67dddb0c21be9c6ceeb174db023d3b9db4a9db9.tar.xz hercules-a67dddb0c21be9c6ceeb174db023d3b9db4a9db9.zip |
Added a new option flag to itemskill() script command to be able to forcefully cast skill on on invoking character.
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 1540482c3..26e33a400 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -243,6 +243,7 @@ struct map_session_data { 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. + unsigned int itemskill_castonself : 1; // Used by itemskill() script command, to forcefully cast skill on invoking character. } state; struct { unsigned char no_weapon_damage, no_magic_damage, no_misc_damage; @@ -648,7 +649,7 @@ END_ZEROED_BLOCK; VECTOR_DECL(int) title_ids; /* - * itemskill_conditions_checked/itemskill_no_conditions/itemskill_no_casttime abuse prevention. + * itemskill_conditions_checked/itemskill_no_conditions/itemskill_no_casttime/itemskill_castonself 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. |