Issue information

Issue ID
#2598
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Dec 28, 2008 12:34
Last Post
Hercules Elf Bot
Apr 4, 2012 8:52
Confirmation
N/A

Hercules Elf Bot - Dec 28, 2008 12:34

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

reporting bugs via PM ftw...

QUOTE
status.c

fix:
if (!battle_config.weapon_defense_type && status->def > battle_config.max_def)
{
status->def2 += battle_config.over_def_bonus*(status->def -battle_config.max_def);
status->def = cap_value((unsigned char)battle_config.max_def, CHAR_MIN, CHAR_MAX);

}


Not sure what exactly is going on here, but in src it's apparent that ->def's type is "signed char", which is a wtf by itself.