mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 06:34:55 +02:00
@@ -869,6 +869,12 @@ bool Combat::closeAttack(Creature* attacker, Creature* target, fightMode_t fight
|
||||
|
||||
Combat::getAttackValue(attacker, attackValue, skillValue, skill);
|
||||
|
||||
int32_t defense = target->getDefense();
|
||||
|
||||
if (OTSYS_TIME() < target->earliestDefendTime) {
|
||||
defense = 0;
|
||||
}
|
||||
|
||||
CombatParams combatParams;
|
||||
combatParams.blockedByArmor = true;
|
||||
combatParams.blockedByShield = true;
|
||||
|
Reference in New Issue
Block a user