summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-22 04:59:21 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-22 04:59:21 +0000
commit3c28bcdb276c7edaebfa39db390c8d55652a8525 (patch)
tree14772dfee1a8efa11f32af0a385ef675de02c7ec /src/map/status.c
parentf1ab59626ff04306a8009c98566631d81d95c33b (diff)
downloadhercules-3c28bcdb276c7edaebfa39db390c8d55652a8525.tar.gz
hercules-3c28bcdb276c7edaebfa39db390c8d55652a8525.tar.bz2
hercules-3c28bcdb276c7edaebfa39db390c8d55652a8525.tar.xz
hercules-3c28bcdb276c7edaebfa39db390c8d55652a8525.zip
Fixed bugreport:5356 Shadow Shaser's Shadow Form. Skill now redirects damage properly and is removed upon either caster or target leaving skill range
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15755 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 7c53a0f68..b69a0c9ec 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1552,13 +1552,14 @@ int status_check_skilluse(struct block_list *src, struct block_list *target, int
switch( target->type ) {
case BL_PC: {
struct map_session_data *sd = (TBL_PC*) target;
- bool is_boss = (status->mode&MD_BOSS), is_detector = (status->mode&MD_DETECTOR);
+ bool is_boss = (status->mode&MD_BOSS);
+ bool is_detect = ((status->mode&MD_DETECTOR)?true:false);//god-knows-why gcc doesn't shut up until this happens
if (pc_isinvisible(sd))
return 0;
if (tsc->option&hide_flag && !is_boss &&
- (sd->special_state.perfect_hiding || !is_detector) )
+ (sd->special_state.perfect_hiding || !is_detect) )
return 0;
- if( tsc->data[SC_CAMOUFLAGE] && !(is_boss || is_detector) && !skill_num )
+ if( tsc->data[SC_CAMOUFLAGE] && !(is_boss || is_detect) && !skill_num )
return 0;
if( tsc->data[SC_CLOAKINGEXCEED] && !is_boss )
return 0;