Merge branch 'working' into 'master'
#15 si pas de fatigue, ignorer See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!12
This commit is contained in:
commit
3cb3ad8d54
@ -492,7 +492,7 @@ export class RdDActor extends Actor {
|
||||
if ( data.value < 0 ) data.value = 0;
|
||||
|
||||
if (name == "endurance") {
|
||||
if ( inc < 0 ) // Each endurance lost -> fatigue lost
|
||||
if ( sante.fatigue && inc < 0 ) // Each endurance lost -> fatigue lost
|
||||
sante.fatigue.value = sante.fatigue.value - inc
|
||||
|
||||
// If endurance is 0 -> -1 vie
|
||||
|
Loading…
Reference in New Issue
Block a user