Skip to content

Commit

Permalink
Rebalance of MO_BLADESTOP (Root)
Browse files Browse the repository at this point in the history
- Cooldown added: 3s
- Boss monsters are now affected
- Duration changed:
  - Old: 10 + (SkillLevel * 10) seconds
  - New: 10 seconds (2 seconds on boss monsters)

From massive skills rebalance (1st/2nd/transclass) (2018.10.31)
  • Loading branch information
guilherme-gm committed Aug 20, 2023
1 parent c8cfe68 commit 0e9352b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
15 changes: 4 additions & 11 deletions db/re/skill_db.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8186,18 +8186,11 @@ skill_db: (
Lv9: 2100
Lv10: 2300
}
SkillData2: {
Lv1: 20000
Lv2: 30000
Lv3: 40000
Lv4: 50000
Lv5: 60000
Lv6: 70000
Lv7: 80000
Lv8: 90000
Lv9: 100000
Lv10: 110000
SkillData2: { // Effect duration (in miliseconds)
Lv1: 2_000 // Boss targets
Lv2: 10_000 // Non-Boss targets
}
CoolDown: 3_000
FixedCastTime: 0
Requirements: {
SPCost: 10
Expand Down
10 changes: 9 additions & 1 deletion src/map/battle.c
Original file line number Diff line number Diff line change
Expand Up @@ -6652,8 +6652,10 @@ static bool battle_should_bladestop_attacker(struct block_list *src, struct bloc
if (tsc == NULL || tsc->data[SC_BLADESTOP_WAIT] == NULL)
return false; // Target is not in BladeStop wait mode

#ifndef RENEWAL
if (is_boss(src))
return false; // Boss monsters are not affected
#endif

// CHECKME: Is that right?
if (src->type == BL_PC)
Expand Down Expand Up @@ -6737,8 +6739,14 @@ static enum damage_lv battle_weapon_attack(struct block_list *src, struct block_
}
if (battle->should_bladestop_attacker(src, target)) {
uint16 skill_lv = tsc->data[SC_BLADESTOP_WAIT]->val1;
int duration = skill->get_time2(MO_BLADESTOP,skill_lv);
status_change_end(target, SC_BLADESTOP_WAIT, INVALID_TIMER);

#ifndef RENEWAL
int duration = skill->get_time2(MO_BLADESTOP, skill_lv);
#else
int duration = skill->get_time2(MO_BLADESTOP, is_boss(src) ? 1 : 2);
#endif

if (sc_start4(target, src, SC_BLADESTOP, 100, sd ? pc->checkskill(sd, MO_BLADESTOP) : 5, 0, 0, target->id, duration, MO_BLADESTOP)) {
//Target locked.
clif->damage(src, target, sstatus->amotion, 1, 0, 1, BDT_NORMAL, 0); //Display MISS.
Expand Down

0 comments on commit 0e9352b

Please sign in to comment.