diff options
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c index 76ef761be..3f2fda92f 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -2354,10 +2354,11 @@ int status_calc_homunculus(struct homun_data *hd, int first) status->luk = hom->luk / 10; if (first) { //[orn] - status->def_ele = hd->homunculusDB->element; + const struct homunculus_db *db = hd->homunculusDB; + status->def_ele = db->element; status->ele_lv = 1; - status->race = hd->homunculusDB->race ; - status->size = hd->homunculusDB->size ; + status->race = db->race; + status->size = (hom->class_ == db->evo_class)?db->evo_size:db->base_size; status->rhw.range = 1 + status->size; status->mode = MD_CANMOVE|MD_CANATTACK; status->speed = DEFAULT_WALK_SPEED; |