diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-20 16:05:45 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-07-20 16:05:45 +0000 |
commit | ca32e250d3ad395f20a6290f5af7181fdbd5c23e (patch) | |
tree | b6b01e2574dc70665cfe7c509ec88abae08304f3 /src/map | |
parent | ee2c6f31895d4998a5ec2953b08ab27db971dce8 (diff) | |
download | hercules-ca32e250d3ad395f20a6290f5af7181fdbd5c23e.tar.gz hercules-ca32e250d3ad395f20a6290f5af7181fdbd5c23e.tar.bz2 hercules-ca32e250d3ad395f20a6290f5af7181fdbd5c23e.tar.xz hercules-ca32e250d3ad395f20a6290f5af7181fdbd5c23e.zip |
- Added a status_check_skilluse on skill_attack_area call to prevent splash damage skills from hitting hidden/trickdead/etc characters.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7767 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 86a94a89d..9f874ed1e 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -9196,7 +9196,8 @@ int skill_attack_area (struct block_list *bl, va_list ap) flag=va_arg(ap,int); type=va_arg(ap,int); - if(battle_check_target(dsrc,bl,type) > 0) + if(battle_check_target(dsrc,bl,type) > 0 && + status_check_skilluse(NULL, bl, skillid, 2)) //also check if they can be hit. skill_attack(atk_type,src,dsrc,bl,skillid,skilllv,tick,flag); return 0; |