Skip to content

Commit

Permalink
Expand ensemble skills range to 4 cells (RE)
Browse files Browse the repository at this point in the history
From massive skills rebalance (1st/2nd/transclass) (2018.11.28)
  • Loading branch information
guilherme-gm committed Jun 30, 2024
1 parent 6c751aa commit 1560da7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/map/unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1558,8 +1558,12 @@ static int unit_skilluse_id2(struct block_list *src, int target_id, uint16 skill
tstatus = status->get_status_data(target);
// Record the status of the previous skill)
if (sd) {

if ((skill->get_inf2(skill_id)&INF2_ENSEMBLE_SKILL) && skill->check_pc_partner(sd, skill_id, &skill_lv, 1, 0) < 1) {
#ifdef RENEWAL
static const int ensemble_range = 4;
#else
static const int ensemble_range = 1;
#endif
if ((skill->get_inf2(skill_id)&INF2_ENSEMBLE_SKILL) && skill->check_pc_partner(sd, skill_id, &skill_lv, ensemble_range, 0) < 1) {
clif->skill_fail(sd, skill_id, USESKILL_FAIL_LEVEL, 0, 0);
return 0;
}
Expand Down

0 comments on commit 1560da7

Please sign in to comment.