Fix: si pas de fatigue, ignorer
Les créatures n'ont pas de fatigue Issue: #11
This commit is contained in:
parent
c6d85729bc
commit
d8ba6ce3fc
@ -492,7 +492,7 @@ export class RdDActor extends Actor {
|
|||||||
if ( data.value < 0 ) data.value = 0;
|
if ( data.value < 0 ) data.value = 0;
|
||||||
|
|
||||||
if (name == "endurance") {
|
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
|
sante.fatigue.value = sante.fatigue.value - inc
|
||||||
|
|
||||||
// If endurance is 0 -> -1 vie
|
// If endurance is 0 -> -1 vie
|
||||||
|
Loading…
Reference in New Issue
Block a user