summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-30 08:25:03 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-11-30 08:25:03 +0000
commit1a71202b477c6820b9193a1131a61c3c7b005924 (patch)
tree517c5a841b0dd02c120d8fa20a268a147a11425b /src/map/mob.c
parent97cb8eebed531dda76a2f4015a95823a9540dd0a (diff)
downloadhercules-1a71202b477c6820b9193a1131a61c3c7b005924.tar.gz
hercules-1a71202b477c6820b9193a1131a61c3c7b005924.tar.bz2
hercules-1a71202b477c6820b9193a1131a61c3c7b005924.tar.xz
hercules-1a71202b477c6820b9193a1131a61c3c7b005924.zip
* Added a define for star gladiator feel/hate info array length (follow up to r8721 and r11840).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14523 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index edea51008..d6516dcec 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2064,9 +2064,9 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type)
temp = status_get_class(&md->bl);
if(sd->sc.data[SC_MIRACLE]) i = 2; //All mobs are Star Targets
else
- ARR_FIND(0, 3, i, temp == sd->hate_mob[i] &&
+ ARR_FIND(0, MAX_PC_FEELHATE, 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)))
+ if(i<MAX_PC_FEELHATE && (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]