From 5130b9f6e11b64a958a37e7b6cf9e7ad9885e5ab Mon Sep 17 00:00:00 2001 From: Sandro Junior Date: Sun, 11 Apr 2021 08:35:04 -0300 Subject: [PATCH] Fix TK_POWER Attack Bonus (#5838) * Fixes (#5836) * Multiplier value based on party members count doesn't include the party leader. Thanks to @Tydus1 and @Indigo000! Co-authored-by: Lemongrass3110 --- src/map/battle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/battle.cpp b/src/map/battle.cpp index 7bdb0e504c..1a6bf03b1a 100644 --- a/src/map/battle.cpp +++ b/src/map/battle.cpp @@ -3633,6 +3633,8 @@ static void battle_calc_skill_base_damage(struct Damage* wd, struct block_list * #endif if(sd->status.party_id && (skill=pc_checkskill(sd,TK_POWER)) > 0) { if( (i = party_foreachsamemap(party_sub_count, sd, 0)) > 1 ) { // exclude the player himself [Inkfish] + // Reduce count by one (self) [Tydus1] + i -= 1; ATK_ADDRATE(wd->damage, wd->damage2, 2*skill*i); RE_ALLATK_ADDRATE(wd, 2*skill*i); }