diff options
-rw-r--r-- | Changelog-Trunk.txt | 2 | ||||
-rw-r--r-- | src/map/skill.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 08a49b8d5..4e4d3f58f 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -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
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; |