Skip to content

Commit

Permalink
Merge pull request #3018 from SinjiPrasetio/SinjiContribution
Browse files Browse the repository at this point in the history
Fix Doram Skills Picky Peck and Bite
  • Loading branch information
MishimaHaruna authored Jan 5, 2022
2 parents 94c1db6 + 3131836 commit a5290c4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions db/pre-re/skill_db.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35487,7 +35487,7 @@ skill_db: (
}
AttackType: "Weapon"
Element: "Ele_Weapon"
NumberOfHits: -5
NumberOfHits: 5
InterruptCast: true
CastTime: 2500
AfterCastActDelay: 1000
Expand Down Expand Up @@ -35517,7 +35517,7 @@ skill_db: (
}
AttackType: "Weapon"
Element: "Ele_Weapon"
NumberOfHits: -5
NumberOfHits: 5
InterruptCast: true
AfterCastActDelay: 1000
Requirements: {
Expand Down
4 changes: 2 additions & 2 deletions db/re/skill_db.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36340,7 +36340,7 @@ skill_db: (
}
AttackType: "Weapon"
Element: "Ele_Weapon"
NumberOfHits: -5
NumberOfHits: 5
InterruptCast: true
CastTime: 2500
AfterCastActDelay: 1000
Expand Down Expand Up @@ -36371,7 +36371,7 @@ skill_db: (
}
AttackType: "Weapon"
Element: "Ele_Weapon"
NumberOfHits: -5
NumberOfHits: 5
InterruptCast: true
AfterCastActDelay: 1000
FixedCastTime: 0
Expand Down
2 changes: 2 additions & 0 deletions src/map/battle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1774,6 +1774,8 @@ static int battle_calc_skillratio(int attack_type, struct block_list *src, struc
skillratio += 100 + 100 * skill_lv;
if ((status_get_max_hp(target) / 100) <= 50)
skillratio *= 2;
if (sd != NULL && pc->checkskill(sd, SU_SPIRITOFLIFE) > 0)
skillratio += skillratio * status_get_hp(src) / status_get_max_hp(src);
break;
case SU_LUNATICCARROTBEAT:
skillratio += 100 + 100 * skill_lv;
Expand Down
9 changes: 4 additions & 5 deletions src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -5063,16 +5063,15 @@ static int skill_castend_damage_id(struct block_list *src, struct block_list *bl
skill->attack(BF_WEAPON,src,src,bl,skill_id,skill_lv,tick,flag);
break;

case SU_PICKYPECK:
clif->skill_nodamage(src, bl, skill_id, skill_lv, 1);
FALLTHROUGH
case SU_BITE:
skill->attack(BF_WEAPON, src, src, bl, skill_id, skill_lv, tick, flag);
if (status->get_lv(src) >= 30 && (rnd() % 100 < (int)(status->get_lv(src) / 30) + 10)) // TODO: Need activation chance.
if (status->get_lv(src) >= 30 && (rnd() % 100 < (int)(status->get_lv(src) / 30) * 10 + 10))
skill->addtimerskill(src, tick + skill->get_delay(skill_id, skill_lv), bl->id, 0, 0, skill_id, skill_lv, BF_WEAPON, flag);
break;

case SU_PICKYPECK:
clif->skill_nodamage(src, bl, skill_id, skill_lv, 1);
break;

// Splash attack skills.
case AS_GRIMTOOTH:
case MC_CARTREVOLUTION:
Expand Down

0 comments on commit a5290c4

Please sign in to comment.