Skip to content

Commit

Permalink
Fixed Bug #7046
Browse files Browse the repository at this point in the history
Updated Safety Wall Renewal behavior, when taking damage higher than the health of the safety wall, excess damage will no longer be passed to the player.
http://hercules.ws/board/tracker/issue-7046-safetywall-should-always-block-at-least-one-hit/

Signed-off-by: shennetsind <ind@henn.et>
  • Loading branch information
shennetsind committed Feb 3, 2013
1 parent 654ba93 commit d6d49c4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/map/battle.c
Expand Up @@ -808,13 +808,12 @@ int battle_calc_damage(struct block_list *src,struct block_list *bl,struct Damag
* in RE, SW possesses a lifetime equal to 3 times the caster's health
**/
#ifdef RENEWAL
d->dmg_lv = ATK_BLOCK;
if ( ( group->val2 - damage) > 0 ) {
group->val2 -= damage;
d->dmg_lv = ATK_BLOCK;
return 0;
} else
damage -= group->val2;
skill_delunitgroup(group);
skill_delunitgroup(group);
return 0;
#else
if (--group->val2<=0)
skill_delunitgroup(group);
Expand Down

0 comments on commit d6d49c4

Please sign in to comment.