From c0259a8cc3e60ed481078590cc3827e7d34963b8 Mon Sep 17 00:00:00 2001 From: "Guilherme G. Menaldo" Date: Sat, 20 Jan 2024 15:56:00 -0300 Subject: [PATCH] Expand ensemble skills range to 4 cells (RE) From massive skills rebalance (1st/2nd/transclass) (2018.11.28) --- src/map/unit.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/map/unit.c b/src/map/unit.c index 26e39f36909..b18dfff2028 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -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; }