Fix jet de moral
L'affichage du message ne fonctionnait plus
This commit is contained in:
parent
94cebbb9e5
commit
3aa13511cd
@ -1427,9 +1427,8 @@ export class RdDActor extends Actor {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
async moralIncDec(ajustementMoral) {
|
||||
|
||||
const actorData = Misc.data(this);
|
||||
if (ajustementMoral != 0) {
|
||||
const actorData = Misc.data(this);
|
||||
let moral = Misc.toInt(actorData.data.compteurs.moral.value) + ajustementMoral
|
||||
if (moral > 3) { // exaltation
|
||||
const exaltation = Misc.toInt(actorData.data.compteurs.exaltation.value) + moral - 3;
|
||||
|
Loading…
Reference in New Issue
Block a user