mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-29 17:19:20 +02:00
increase paladin and knight damage
This commit is contained in:
parent
dd617a66a3
commit
5e979da462
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user