Issue information

Issue ID
#1258
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Mar 23, 2008 22:15
Last Post
Hercules Elf Bot
Nov 28, 2012 5:00
Confirmation
N/A

Hercules Elf Bot - Mar 23, 2008 22:15

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

(originally reported in this topic)

There was a glitch where if you equipped items that accumulated a -100% maxhp bonus and died, you would enter a weirdo zombie state where you could walk, talk and pick up items, but still could not attack nor be attacked.

In current trunk, this glitch doesn't happen anymore, but when you respawn, your hp will still show as '0'. The cause is
CODE
status->hp = 1; //Otherwise status_heal may fail if dead.
...
status_heal(&sd->bl, b_status->hp, b_status->sp>status->sp?b_status->sp-status->sp:0, 1);

->

if((unsigned int)hp > status->max_hp - status->hp)
    hp = status->max_hp - status->hp;
...
    if(!sp && !hp) return 0;
Paradoxically, setting the hp value to 1 blocks the client refresh from happening.

This post has been edited by theultramage: Mar 23 2008, 03:16 PM

Hercules Elf Bot - Nov 28, 2012 4:40

Originally posted by [b]MarkZD[/b]
Fixed at: http://trac.rathena.org/changeset/16363/rathena