mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
Allow modCurrent instructions to decrease below zero (Bug #1589)
This commit is contained in:
parent
2506c16bf5
commit
205e039a39
@ -260,7 +260,7 @@ namespace MWScript
|
|||||||
MWMechanics::DynamicStat<float> stat (ptr.getClass().getCreatureStats (ptr)
|
MWMechanics::DynamicStat<float> stat (ptr.getClass().getCreatureStats (ptr)
|
||||||
.getDynamic (mIndex));
|
.getDynamic (mIndex));
|
||||||
|
|
||||||
stat.setCurrent (diff + current);
|
stat.setCurrent (diff + current, true);
|
||||||
|
|
||||||
ptr.getClass().getCreatureStats (ptr).setDynamic (mIndex, stat);
|
ptr.getClass().getCreatureStats (ptr).setDynamic (mIndex, stat);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user