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 | |
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
-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]); |