increase paladin and knight damage

This commit is contained in:
ErikasKontenis 2020-05-07 23:23:22 +03:00
parent dd617a66a3
commit 5e979da462

View File

@ -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();