mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 09:39:20 +02:00
increase melee damage by 15% for paladins and 20% for knights
This commit is contained in:
parent
83dff737cb
commit
651ca9e075
@ -896,6 +896,15 @@ bool Combat::closeAttack(Creature* attacker, Creature* target, fightMode_t fight
|
|||||||
combatDamage.value = totalDamage;
|
combatDamage.value = totalDamage;
|
||||||
combatDamage.origin = ORIGIN_MELEE;
|
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) {
|
||||||
|
combatDamage.value += combatDamage.value * 0.20;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bool hit = Combat::doCombatHealth(attacker, target, combatDamage, combatParams);
|
bool hit = Combat::doCombatHealth(attacker, target, combatDamage, combatParams);
|
||||||
|
|
||||||
if (Monster* monster = attacker->getMonster()) {
|
if (Monster* monster = attacker->getMonster()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user