Issue information

Issue ID
#3051
Status
Fixed
Severity
None
Started
Hercules Elf Bot
May 5, 2009 20:15
Last Post
Hercules Elf Bot
May 5, 2009 20:15
Confirmation
N/A

Hercules Elf Bot - May 5, 2009 20:15

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

Revision: 13730 Trunk & 13188 Stable

Descriptions says, that Shoulder Break reduce def by 50%, and Waist Break reduce def by 25%
source says that def is reduced by 5000% and 2500% respectively

CODE
    if(sc->data[SC_JOINTBEAT]){
        def2 -= def2 *
            ( ( sc->data[SC_JOINTBEAT]->val2&BREAK_SHOULDER ? 50 : 0 )
            + ( sc->data[SC_JOINTBEAT]->val2&BREAK_WAIST    ? 25 : 0 ) );
    }


this needs only /100 to fix the error:

CODE
    if(sc->data[SC_JOINTBEAT]){
        def2 -= def2 *
            ( ( sc->data[SC_JOINTBEAT]->val2&BREAK_SHOULDER ? 50 : 0 )
            + ( sc->data[SC_JOINTBEAT]->val2&BREAK_WAIST    ? 25 : 0 ) )/100;
    }