- 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://svn.code.sf.net/p/rathena/svn/trunk@7767 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-07-20 16:05:45 +00:00
parent 9f6f7ac284
commit 911eb096e3
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/07/20
* Added a status_check_skilluse on skill_attack_area call to prevent splash
damage skills from hitting hidden/trickdead/etc characters. [Skotlex]
* Corrected fog of wall to behave as best known currently: [Skotlex]
- Only takes effect when targetting a character inside it
- -50hit/-75% damage when using normal-ranged attacks

View File

@ -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;