Skip to content

Commit

Permalink
Fixes Dark Claw boss damage (#6043)
Browse files Browse the repository at this point in the history
* Dark Claw damage increase is only by half versus boss monsters.
* Flipped the check around from halving the final damage.
Thanks to @limitro!
  • Loading branch information
aleos89 committed Jun 23, 2021
1 parent 82cc35a commit 5c59d11
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/map/battle.cpp
Expand Up @@ -1495,11 +1495,14 @@ int64 battle_calc_damage(struct block_list *src,struct block_list *bl,struct Dam

if (sc->data[SC_SOUNDOFDESTRUCTION])
damage <<= 1;
if (sc->data[SC_DARKCROW] && (flag&(BF_SHORT|BF_MAGIC)) == BF_SHORT) {
damage += damage * sc->data[SC_DARKCROW]->val2 / 100;
if (status_get_class_(bl) == CLASS_BOSS)
damage /= 2;
}
if (sc->data[SC_DARKCROW] && (flag&(BF_SHORT|BF_MAGIC)) == BF_SHORT) {
int bonus = sc->data[SC_DARKCROW]->val2;

if (status_get_class_(bl) == CLASS_BOSS)
bonus /= 2;

damage += damage * bonus / 100;
}

// Damage reductions
// Assumptio increases DEF on RE mode, otherwise gives a reduction on the final damage. [Igniz]
Expand Down

0 comments on commit 5c59d11

Please sign in to comment.