From 5e979da462efba8f258305904c10bb256151b6fa Mon Sep 17 00:00:00 2001 From: ErikasKontenis Date: Thu, 7 May 2020 23:23:22 +0300 Subject: [PATCH] increase paladin and knight damage --- src/combat.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/combat.cpp b/src/combat.cpp index f275a2a..c593bee 100644 --- a/src/combat.cpp +++ b/src/combat.cpp @@ -897,10 +897,7 @@ bool Combat::closeAttack(Creature* attacker, Creature* target, fightMode_t fight combatDamage.origin = ORIGIN_MELEE; if (Player* player = attacker->getPlayer()) { - if (player->getVocationId() == 3 || player->getVocationId() == 7) { - combatDamage.value += combatDamage.value * 0.15; - } - else if (player->getVocationId() == 4 || player->getVocationId() == 8) { + if (player->getVocationId() == 4 || player->getVocationId() == 8) { combatDamage.value += combatDamage.value * 0.20; } } @@ -1021,6 +1018,12 @@ bool Combat::rangeAttack(Creature* attacker, Creature* target, fightMode_t fight combatDamage.value = Combat::getTotalDamage(skillValue, attackValue, fightMode); combatDamage.origin = ORIGIN_RANGED; + if (Player* player = attacker->getPlayer()) { + if (player->getVocationId() == 3 || player->getVocationId() == 7) { + combatDamage.value += combatDamage.value * 0.15; + } + } + if (weapon) { hitChance = 75; // throwables and such specialEffect = weapon->getWeaponSpecialEffect();