summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorMichieru <Michieru@users.noreply.github.com>2014-09-16 23:33:35 +0200
committerMichieru <Michieru@users.noreply.github.com>2014-09-16 23:33:35 +0200
commitddc52570a9bf694cdba6445bc02350a94856a583 (patch)
tree495dd01a9e42e0585cafa7fd718b660914e46180 /src/map/mob.c
parent8ab61745b81d1cf0602c7998f590aac8749187da (diff)
downloadhercules-ddc52570a9bf694cdba6445bc02350a94856a583.tar.gz
hercules-ddc52570a9bf694cdba6445bc02350a94856a583.tar.bz2
hercules-ddc52570a9bf694cdba6445bc02350a94856a583.tar.xz
hercules-ddc52570a9bf694cdba6445bc02350a94856a583.zip
Follow: https://github.com/HerculesWS/Hercules/commit/8ab61745b81d1cf0602c7998f590aac8749187da
This fixed all mob size problem :) Fix estin estun not working properly (bug:7891)
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 3f1769d37..fd2c4213f 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -2203,7 +2203,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) {
// change experience for different sized monsters [Valaris]
if (battle_config.mob_size_influence) {
switch( md->special_state.size ) {
- case SZ_SMALL:
+ case SZ_MEDIUM:
per /= 2.;
break;
case SZ_BIG:
@@ -2324,7 +2324,7 @@ int mob_dead(struct mob_data *md, struct block_list *src, int type) {
// change drops depending on monsters size [Valaris]
if (battle_config.mob_size_influence)
{
- if (md->special_state.size == SZ_SMALL && drop_rate >= 2)
+ if (md->special_state.size == SZ_MEDIUM && drop_rate >= 2)
drop_rate /= 2;
else if( md->special_state.size == SZ_BIG)
drop_rate *= 2;
@@ -3508,7 +3508,7 @@ int mob_clone_spawn(struct map_session_data *sd, int16 m, int16 x, int16 y, cons
sd->fd = fd;
//Finally, spawn it.
- md = mob->once_spawn_sub(&sd->bl, m, x, y, "--en--", class_, event, SZ_MEDIUM, AI_NONE);
+ md = mob->once_spawn_sub(&sd->bl, m, x, y, "--en--", class_, event, SZ_SMALL, AI_NONE);
if (!md) return 0; //Failed?
md->special_state.clone = 1;