summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.c2
-rw-r--r--src/map/skill.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index c112c5666..6da9d5e57 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -3598,7 +3598,7 @@ static unsigned int mob_drop_adjust(int baserate, int rate_adjust, unsigned shor
{
double rate = baserate;
- if (battle_config.logarithmic_drops && rate_adjust > 0 && baserate > 0) //Logarithmic drops equation by Ishizu-Chan
+ if (battle_config.logarithmic_drops && rate_adjust > 0 && rate_adjust != 100 && baserate > 0) //Logarithmic drops equation by Ishizu-Chan
//Equation: Droprate(x,y) = x * (5 - log(x)) ^ (ln(y) / ln(5))
//x is the normal Droprate, y is the Modificator.
rate = rate * pow((5.0 - log10(rate)), (log(rate_adjust/100.) / log(5.0))) + 0.5;
diff --git a/src/map/skill.c b/src/map/skill.c
index 718bf7faa..ad7749828 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -12103,8 +12103,13 @@ static int skill_unit_effect (struct block_list* bl, va_list ap)
//Target-type check.
if( !(group->bl_flag&bl->type && battle_check_target(&unit->bl,bl,group->target_flag)>0) ) {
- if( flag&4 && ((group->src_id == bl->id && group->state.song_dance&0x2) || skill_get_inf2(skill_id)&INF2_SONG_DANCE) )
+ if( flag&4 && group->src_id == bl->id && group->state.song_dance&0x2 ) {
skill_unit_onleft(skill_id, bl, tick);//Ensemble check to terminate it.
+ } else {
+ if ( flag&4 && skill_get_inf2(skill_id)&INF2_SONG_DANCE) { // Make a exception for song/dance skill
+ skill_unit_onleft(unit->val1, bl, tick); //TODO: fix skill_dance_switch
+ }
+ }
} else {
if( flag&1 )
skill_unit_onplace(unit,bl,tick);