Originally posted by [b]Ai4rei[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3305
skill_attack @ src/map/skill.cCODE
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