Issue information

Issue ID
#3305
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Jun 28, 2009 20:47
Last Post
Hercules Elf Bot
Mar 5, 2012 17:06
Confirmation
N/A

Hercules Elf Bot - Jun 28, 2009 20:47

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

skill_attack @ src/map/skill.c
CODE
    if(damage > 0 && dmg.flag&BF_SKILL && tsd
        && pc_checkskill(tsd,RG_PLAGIARISM)
          && (!sc || !sc->data[SC_PRESERVE])
        && damage < tsd->status.hp)
    {    //Updated to not be able to copy skills if the blow will kill you. [Skotlex]


The code checks status.hp, to see, whether the player would get killed by the damage or not. Since status.hp hold only the base value, once the player recieves damage above his base hp, the skill won't get memorized, even if it doesn't kill him. On other hand, if the skill, that kills the player, does lower damage, than base hp, the skill gets memorized. Correct value would be battle_status.hp .

This post has been edited by Ai4rei: Jun 28 2009, 01:58 PM