From f9f63203fb461e69a9a422d160986daa78eecc51 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 22 Sep 2009 18:03:32 -0600 Subject: Prevent attacking while hidden --- src/map/clif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map') 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) { -- cgit v1.2.3-60-g2f50