Issue information

Issue ID
#3612
Status
Confirmed
Severity
None
Started
Hercules Elf Bot
Sep 24, 2009 7:03
Last Post
Hercules Elf Bot
Sep 24, 2009 7:03
Confirmation
N/A

Hercules Elf Bot - Sep 24, 2009 7:03

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

[codebox] case SP_BASE_ATK:
if(sd->state.lr_flag != 2) {
bonus = status->batk + val;
status->batk = cap_value(bonus, 0, USHRT_MAX);
}
break;
[/codebox]

I noticed while wearing a Mineral card (-25 ATK/+3 DEF), the 'bonus' attack isn't being applied to the actual damage, and from looking in the code, it seems to be capped to 0. Is this intentionally preventing negative bonuses from reducing your main attack stat or just an oversight?

This post has been edited by code_orange: Sep 24 2009, 12:04 AM