summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-15 00:25:54 +0100
committerHaru <haru@dotalux.com>2015-12-28 18:35:59 +0100
commit11278d27b85a5930b548c73e20fd651558e0e1bf (patch)
tree2d50acab00dac4bc123b65bf2f0504efadfde781 /src/map
parentf469cad82f1ee643899130d935c6f4979bfb252d (diff)
downloadhercules-11278d27b85a5930b548c73e20fd651558e0e1bf.tar.gz
hercules-11278d27b85a5930b548c73e20fd651558e0e1bf.tar.bz2
hercules-11278d27b85a5930b548c73e20fd651558e0e1bf.tar.xz
hercules-11278d27b85a5930b548c73e20fd651558e0e1bf.zip
Added Zanzou mob ID to the mob_id enum
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map')
-rw-r--r--src/map/mob.h2
-rw-r--r--src/map/skill.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/map/mob.h b/src/map/mob.h
index 8042c55b1..073d485ff 100644
--- a/src/map/mob.h
+++ b/src/map/mob.h
@@ -390,6 +390,8 @@ enum mob_id {
//...
MOBID_LITTLE_FATUM = 2136, ///< LITTLE_FATUM / Little Fatum
MOBID_MIMING = 2137, ///< MIMING / Miming
+
+ MOBID_KO_KAGE = 2308, ///< KO_KAGE / Zanzou
};
// The data structures for storing delayed item drops
diff --git a/src/map/skill.c b/src/map/skill.c
index ce6f2f367..08c06011f 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -9630,7 +9630,7 @@ int skill_castend_nodamage_id(struct block_list *src, struct block_list *bl, uin
if(sd) {
struct mob_data *summon_md;
- summon_md = mob->once_spawn_sub(src, src->m, src->x, src->y, status->get_name(src), 2308, "", SZ_SMALL, AI_NONE);
+ summon_md = mob->once_spawn_sub(src, src->m, src->x, src->y, status->get_name(src), MOBID_KO_KAGE, "", SZ_SMALL, AI_NONE);
if( summon_md ) {
summon_md->master_id = src->id;
summon_md->special_state.ai = AI_ZANZOU;
@@ -14088,7 +14088,7 @@ int skill_check_condition_castend(struct map_session_data* sd, uint16 skill_id,
break;
case KO_ZANZOU: {
int c = 0;
- i = map->foreachinmap(skill->check_condition_mob_master_sub, sd->bl.m, BL_MOB, sd->bl.id, 2308, skill_id, &c);
+ i = map->foreachinmap(skill->check_condition_mob_master_sub, sd->bl.m, BL_MOB, sd->bl.id, MOBID_KO_KAGE, skill_id, &c);
if( c >= skill->get_maxcount(skill_id,skill_lv) || c != i) {
clif->skill_fail(sd , skill_id, USESKILL_FAIL_LEVEL, 0);
return 0;