summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-09-22 18:03:32 -0600
committerJared Adams <jaxad0127@gmail.com>2009-09-22 18:05:02 -0600
commitf9f63203fb461e69a9a422d160986daa78eecc51 (patch)
treebd2a9ff7c89ad56db2e62f741b0f3bc617391ede
parent2df9559b94ce9acb7e8439e1c39bce4eb87e35ee (diff)
downloadtmwa-f9f63203fb461e69a9a422d160986daa78eecc51.tar.gz
tmwa-f9f63203fb461e69a9a422d160986daa78eecc51.tar.bz2
tmwa-f9f63203fb461e69a9a422d160986daa78eecc51.tar.xz
tmwa-f9f63203fb461e69a9a422d160986daa78eecc51.zip
Prevent attacking while hidden
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index ce86cff..083a246 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -6699,7 +6699,7 @@ void clif_parse_ActionRequest(int fd, struct map_session_data *sd) {
switch(action_type) {
case 0x00: // once attack
case 0x07: // continuous attack
- if(sd->sc_data[SC_WEDDING].timer != -1 || sd->view_class==22)
+ if(sd->sc_data[SC_WEDDING].timer != -1 || sd->view_class==22 || sd->status.option & OPTION_HIDE)
return;
if (!battle_config.sdelay_attack_enable && pc_checkskill(sd, SA_FREECAST) <= 0) {
if (DIFF_TICK(tick, sd->canact_tick) < 0) {