diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-27 11:01:23 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-03-27 11:01:23 +0000 |
commit | 1c016a1b9997d8e086cb583bf7f82377d6a40d26 (patch) | |
tree | d36c3b4b5911892df5fa6f848a8ba83cc6fe4e89 /src/map | |
parent | 16dbe2532305d1f4705a6aaf9185ada09d7dcac8 (diff) | |
download | hercules-1c016a1b9997d8e086cb583bf7f82377d6a40d26.tar.gz hercules-1c016a1b9997d8e086cb583bf7f82377d6a40d26.tar.bz2 hercules-1c016a1b9997d8e086cb583bf7f82377d6a40d26.tar.xz hercules-1c016a1b9997d8e086cb583bf7f82377d6a40d26.zip |
* Fixed AddEffWhenHit effect to only work on melee attacks
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1310 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/skill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c index 688f84c99..131e8324b 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -1088,7 +1088,7 @@ int skill_additional_effect( struct block_list* src, struct block_list *bl,int s } } } - if (dstsd && + if (dstsd && ((sd && !sd->state.arrow_atk) || (status_get_range(src)<=2)) && rand()%10000 < dstsd->addeff3[i-SC_STONE]*sc_def_card/100){ if(battle_config.battle_log) printf("PC %d skill_addeff: cardによる異常?動 %d %d\n",src->id,i,dstsd->addeff3[i-SC_STONE]); |