Issue information

Issue ID
#125
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Sep 26, 2007 18:01
Last Post
Hercules Elf Bot
Sep 26, 2007 18:01
Confirmation
N/A

Hercules Elf Bot - Sep 26, 2007 18:01

Originally posted by [b]Barron-Monster[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=125

Actualy the func is that:
CODE
/*==========================================
* [orn]
*------------------------------------------*/
BUILDIN_FUNC(homunculus_evolution)
{
    TBL_PC *sd;
    sd=script_rid2sd(st);
    if(merc_is_hom_active(sd->hd))
    {
        if (sd->hd->homunculus.intimacy > 91000)
            merc_hom_evolution(sd->hd);
        else
            clif_emotion(&sd->hd->bl, 4);    //swt
    }
    return 0;
}

But if you read the doc:
CODE
* homunculus_evolution;

This command will try to evolve the current player's homunculus.
If it doesn't work, the /swt emoticon is shown.

To evolve a homunculus, the invoking player must have a homunculus,
the homunculus must not be the last evolution and
the homunculus must be on at least 91000/100000 intimacy with it's owner.

Then at least mean >= not only > i think the fix is :
CODE
/*==========================================
* [orn]
*------------------------------------------*/
BUILDIN_FUNC(homunculus_evolution)
{
    TBL_PC *sd;
    sd=script_rid2sd(st);
    if(merc_is_hom_active(sd->hd))
    {
        if (sd->hd->homunculus.intimacy >= 91000)
            merc_hom_evolution(sd->hd);
        else
            clif_emotion(&sd->hd->bl, 4);    //swt
    }
    return 0;
}