Fix: recul sur encaissement créature #187
This commit is contained in:
parent
020824af7e
commit
76865d24d2
@ -25,6 +25,7 @@ export class RdDItemCompetenceCreature extends Item {
|
|||||||
competence: arme.name,
|
competence: arme.name,
|
||||||
resistance: 100,
|
resistance: 100,
|
||||||
equipe: true,
|
equipe: true,
|
||||||
|
dommagesReels: arme.data.dommages,
|
||||||
penetration: 0,
|
penetration: 0,
|
||||||
force: 0,
|
force: 0,
|
||||||
rapide: true
|
rapide: true
|
||||||
|
@ -1185,7 +1185,7 @@ export class RdDCombat {
|
|||||||
_computeImpactRecul(attaque) {
|
_computeImpactRecul(attaque) {
|
||||||
const taille = this.defender.getTaille();
|
const taille = this.defender.getTaille();
|
||||||
const force = this.attacker.getForce();
|
const force = this.attacker.getForce();
|
||||||
const dommages = attaque.arme.data.dommagesReels;
|
const dommages = attaque.arme.data.dommagesReels ?? attaque.arme.data.dommages;
|
||||||
return taille - (force + dommages);
|
return taille - (force + dommages);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user