Skip to content

Commit

Permalink
fix: gem atelier critical extra damage not being applied
Browse files Browse the repository at this point in the history
changes:
- Added gem stat to critical extra damage player skill level
  • Loading branch information
phacUFPE committed Apr 29, 2024
1 parent 36b185b commit a153269
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/creatures/players/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1925,7 +1925,7 @@ void Player::onWalk(Direction &dir) {

Creature::onWalk(dir);
setNextActionTask(nullptr);
g_callbacks().executeCallback(EventCallback_t::playerOnWalk, &EventCallback::playerOnWalk, getPlayer(), dir);
}

Expand Down Expand Up @@ -5371,6 +5371,7 @@ uint16_t Player::getSkillLevel(skills_t skill) const {
} else if (skill == SKILL_MANA_LEECH_AMOUNT) {
skillLevel += m_wheelPlayer->getStat(WheelStat_t::MANA_LEECH);
} else if (skill == SKILL_CRITICAL_HIT_DAMAGE) {
skillLevel += m_wheelPlayer->getStat(WheelStat_t::CRITICAL_DAMAGE);
skillLevel += m_wheelPlayer->getMajorStatConditional("Combat Mastery", WheelMajor_t::CRITICAL_DMG_2);
skillLevel += m_wheelPlayer->getMajorStatConditional("Ballistic Mastery", WheelMajor_t::CRITICAL_DMG);
skillLevel += m_wheelPlayer->checkAvatarSkill(WheelAvatarSkill_t::CRITICAL_DAMAGE);
Expand Down

0 comments on commit a153269

Please sign in to comment.