Merge branch 'dev_1.1' into 'dev_1.1'
Fix: endurance+1 != max See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!54
This commit is contained in:
commit
1542c6d1e6
@ -980,7 +980,7 @@ export class RdDActor extends Actor {
|
||||
}
|
||||
newValue = Math.max(0, newValue);
|
||||
if (inc>0) { // le max d'endurance s'applique seulement à la récupération
|
||||
newValue = Math.max(newValue, this._computeEnduranceMax())
|
||||
newValue = Math.min(newValue, this._computeEnduranceMax())
|
||||
}
|
||||
if (data.value - newValue > 1) {
|
||||
this.testSiSonne(sante, newValue); // Peut-être sonné si 2 points d'endurance perdus d'un coup
|
||||
|
Loading…
Reference in New Issue
Block a user