git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1310 54d463be-8e91-2dee-dedb-b68131a5f0ec
@@ -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
@@ -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]);