From e6e0511cf7f0520a762828039ed409fd9207a65e Mon Sep 17 00:00:00 2001 From: Aleos Date: Wed, 12 Sep 2018 11:03:14 -0400 Subject: [PATCH] Corrected a check for skill usage restrictions (#3472) * Resolves an issue where the usage of self skills while a storage is open was causing the entire check to fail. Thanks to @Tokeiburu! --- src/map/clif.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/map/clif.cpp b/src/map/clif.cpp index f4164b4fc6..716e439130 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -12205,9 +12205,10 @@ void clif_parse_UseSkillToId(int fd, struct map_session_data *sd) } } - if( (pc_cant_act2(sd) || sd->chatID) && skill_id != RK_REFRESH && !(skill_id == SR_GENTLETOUCH_CURE && - (sd->sc.opt1 == OPT1_STONE || sd->sc.opt1 == OPT1_FREEZE || sd->sc.opt1 == OPT1_STUN)) && - sd->state.storage_flag && !(inf&INF_SELF_SKILL) ) //SELF skills can be used with the storage open, issue: 8027 + if ((pc_cant_act2(sd) || sd->chatID) && + skill_id != RK_REFRESH && + !(skill_id == SR_GENTLETOUCH_CURE && (sd->sc.opt1 == OPT1_STONE || sd->sc.opt1 == OPT1_FREEZE || sd->sc.opt1 == OPT1_STUN)) && + !(sd->state.storage_flag && (inf&INF_SELF_SKILL))) //SELF skills can be used with the storage open, issue: 8027 return; if( pc_issit(sd) )