summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-19 16:41:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-19 16:41:56 +0000
commit5161d6894dc0afd8fd4a6380ddbb179da3d72623 (patch)
treee66cef5b0034a690ddc87ff747fae0bc87fb87c4 /src/map/mob.c
parent212094474d5124cc805d825cc54f9ff67fde338a (diff)
downloadhercules-5161d6894dc0afd8fd4a6380ddbb179da3d72623.tar.gz
hercules-5161d6894dc0afd8fd4a6380ddbb179da3d72623.tar.bz2
hercules-5161d6894dc0afd8fd4a6380ddbb179da3d72623.tar.xz
hercules-5161d6894dc0afd8fd4a6380ddbb179da3d72623.zip
- Corected the SC_MIRACLE + Anger code using the wrong skill level to calculate damage bonus.
- Corrected SC_MIRACLE to trigger Bless of the Stars on all defeated mobs. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11950 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index b5089cab5..8b01df25b 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1864,13 +1864,12 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
bonus += md->sc.data[SC_RICHMANKIM]->val2;
if(sd) {
temp = status_get_class(&md->bl);
- ARR_FIND(0, 3, i, temp == sd->hate_mob[i]);
- if (i < 3 && (
- battle_config.allow_skill_without_day ||
- sg_info[i].day_func() ||
- (i==2 && sd->sc.data[SC_MIRACLE]) //Miracle only applies to Star target
- ))
- bonus += (i==2?20:10)*pc_checkskill(sd,sg_info[i].bless_id);
+ if(sd->sc.data[SC_MIRACLE]) i = 2; //All mobs are Star Targets
+ else
+ ARR_FIND(0, 3, i, temp == sd->hate_mob[i] &&
+ (battle_config.allow_skill_without_day || sg_info[i].day_func()));
+ if(i<3 && (temp=pc_checkskill(sd,sg_info[i].bless_id)))
+ bonus += (i==2?20:10)*temp;
}
if(battle_config.mobs_level_up && md->level > md->db->lv) // [Valaris]
bonus += (md->level-md->db->lv)*battle_config.mobs_level_up_exp_rate;