Skip to content

Commit

Permalink
Implement official ATK % calculation for BS_OVERTHRUST in pre-renewal
Browse files Browse the repository at this point in the history
Party members only receive 5% ATK bonus.
  • Loading branch information
skyleo committed May 2, 2024
1 parent 5842dd2 commit 53e0ee4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/map/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -8308,8 +8308,15 @@ static int status_change_start_sub(struct block_list *src, struct block_list *bl
val2 = 20*val1; //Power increase
break;
case SC_OVERTHRUST:
//val2 holds if it was casted on self, or is bonus received from others
val3 = 5*val1; //Power increase
#ifndef RENEWAL
if (val2 == 1) // cast on self
val3 = 5 * val1; //Power increase
else // received cast
val3 = 5;
#else
// for renewal this is actually wrong for party members since 2020 and will need to be changed.
val3 = 5 * val1; // Power increase
#endif
if(sd && pc->checkskill(sd,BS_HILTBINDING)>0)
total_tick += total_tick / 10;
break;
Expand Down

0 comments on commit 53e0ee4

Please sign in to comment.