mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 14:44:55 +02:00
increase paladin and knight damage
This commit is contained in:
@@ -897,10 +897,7 @@ bool Combat::closeAttack(Creature* attacker, Creature* target, fightMode_t fight
|
|||||||
combatDamage.origin = ORIGIN_MELEE;
|
combatDamage.origin = ORIGIN_MELEE;
|
||||||
|
|
||||||
if (Player* player = attacker->getPlayer()) {
|
if (Player* player = attacker->getPlayer()) {
|
||||||
if (player->getVocationId() == 3 || player->getVocationId() == 7) {
|
if (player->getVocationId() == 4 || player->getVocationId() == 8) {
|
||||||
combatDamage.value += combatDamage.value * 0.15;
|
|
||||||
}
|
|
||||||
else if (player->getVocationId() == 4 || player->getVocationId() == 8) {
|
|
||||||
combatDamage.value += combatDamage.value * 0.20;
|
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.value = Combat::getTotalDamage(skillValue, attackValue, fightMode);
|
||||||
combatDamage.origin = ORIGIN_RANGED;
|
combatDamage.origin = ORIGIN_RANGED;
|
||||||
|
|
||||||
|
if (Player* player = attacker->getPlayer()) {
|
||||||
|
if (player->getVocationId() == 3 || player->getVocationId() == 7) {
|
||||||
|
combatDamage.value += combatDamage.value * 0.15;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (weapon) {
|
if (weapon) {
|
||||||
hitChance = 75; // throwables and such
|
hitChance = 75; // throwables and such
|
||||||
specialEffect = weapon->getWeaponSpecialEffect();
|
specialEffect = weapon->getWeaponSpecialEffect();
|
||||||
|
Reference in New Issue
Block a user