summaryrefslogtreecommitdiff
path: root/src/map/mercenary.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mercenary.c')
-rw-r--r--src/map/mercenary.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/map/mercenary.c b/src/map/mercenary.c
index 1477797c5..ff13eacb1 100644
--- a/src/map/mercenary.c
+++ b/src/map/mercenary.c
@@ -836,7 +836,7 @@ void merc_reset_stats(struct homun_data *hd)
int merc_hom_shuffle(struct homun_data *hd)
{
- struct map_session_data *sd = hd->master;
+ struct map_session_data *sd;
int lv, i, skillpts;
unsigned int exp;
struct skill b_skill[MAX_HOMUNSKILL];
@@ -844,6 +844,7 @@ int merc_hom_shuffle(struct homun_data *hd)
if (!merc_is_hom_active(hd))
return 0;
+ sd = hd->master;
lv = hd->homunculus.level;
exp = hd->homunculus.exp;
memcpy(&b_skill, &hd->homunculus.hskill, sizeof(b_skill));
@@ -856,10 +857,8 @@ int merc_hom_shuffle(struct homun_data *hd)
merc_hom_levelup(hd);
}
- clif_displaymessage(sd->fd, "[Homunculus Stats Altered]");
-
- if(!hd->homunculusDB->evo_class || hd->homunculus.class_ == hd->homunculusDB->evo_class) {
- // Homunculus Evolucionado
+ if(hd->homunculus.class_ == hd->homunculusDB->evo_class) {
+ //Evolved bonuses
struct s_homunculus *hom = &hd->homunculus;
struct h_stats *max = &hd->homunculusDB->emax, *min = &hd->homunculusDB->emin;
hom->max_hp += rand(min->HP, max->HP);
@@ -870,7 +869,6 @@ int merc_hom_shuffle(struct homun_data *hd)
hom->int_+= 10*rand(min->int_,max->int_);
hom->dex += 10*rand(min->dex, max->dex);
hom->luk += 10*rand(min->luk, max->luk);
- clif_displaymessage(sd->fd, "[Adding Bonus Stats for Evolved Homunculus]");
}
hd->homunculus.exp = exp;