diff options
-rw-r--r-- | Changelog-SVN.txt | 1 | ||||
-rw-r--r-- | src/map/skill.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Changelog-SVN.txt b/Changelog-SVN.txt index c185d38f3..2ed5abb17 100644 --- a/Changelog-SVN.txt +++ b/Changelog-SVN.txt @@ -1,6 +1,7 @@ Date Added 03/27 + * Fixed AddEffWhenHit effect to only work on melee attacks [celest] * Moved guardian hostility checking and monster_ignore_gm check to battle.c -- processed earlier, and more appropiate [celest] * Fixed a SQL syntax crash when logging character names with "'" in them 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]); |