Issue information

Issue ID
#433
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Nov 18, 2007 6:54
Last Post
Hercules Elf Bot
Nov 18, 2007 6:54
Confirmation
N/A

Hercules Elf Bot - Nov 18, 2007 6:54

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

status.c
line: 4467
CODE
    case SC_CURSE:
        //Special property: inmunity when luk is greater than level
        if (status->luk > status_get_lv(bl))
            return 0;
        else
            sc_def = 3 +status->luk;
        tick_def = status->vit;
        break;

line: 4498
CODE
    if (sd) {

        if (battle_config.pc_sc_def_rate != 100)
            sc_def = sc_def*battle_config.pc_sc_def_rate/100;

        if (sc_def < battle_config.pc_max_sc_def)
            sc_def += (battle_config.pc_max_sc_def - sc_def)*
                status->luk/battle_config.pc_luk_sc_def;
        else
            sc_def = battle_config.pc_max_sc_def;

        if (tick_def) {
            if (battle_config.pc_sc_def_rate != 100)
                tick_def = sc_def*battle_config.pc_sc_def_rate/100;
        }

If battle_config.pc_sc_def_rate != 100 then tick_def will be equal to sc_def and tick_def = status->vit; will lose the sense