Issue information

Issue ID
#4162
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Apr 1, 2010 8:23
Last Post
Hercules Elf Bot
Apr 1, 2010 8:23
Confirmation
N/A

Hercules Elf Bot - Apr 1, 2010 8:23

Originally posted by [b]theultramage[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4162

CODE
    if ( (pc_isGM(sd) > battle_config.lowest_gm_level && pc_isGM(tsd) < battle_config.lowest_gm_level && !battle_config.gm_can_party && pc_isGM(sd) < battle_config.gm_cant_party_min_lv)
        || ( pc_isGM(sd) < battle_config.lowest_gm_level && pc_isGM(tsd) > battle_config.lowest_gm_level && !battle_config.gm_can_party && pc_isGM(tsd) < battle_config.gm_cant_party_min_lv) )
    {
        //GMs can't invite non GMs to the party if not above the invite trust level
        //Likewise, as long as gm_can_party is off, players can't invite GMs.
        clif_displaymessage(sd->fd, msg_txt(81));
        return 0;
    }

The two places where the GM above the lowest_gm_level check is done uses "strictly greater than" comparison. This causes the lowest-ranking GMs to be treated as normal players for the purposes of this check. To fix, replace both occurences of > with >=.