mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-10-08 15:56:37 +00:00
Reset health modifier when actor dies (Fixes #2330)
This commit is contained in:
parent
82ff737c31
commit
ee8f88fc42
1 changed files with 2 additions and 0 deletions
|
@ -196,6 +196,8 @@ namespace MWMechanics
|
||||||
if (index==0 && mDynamic[index].getCurrent()<1)
|
if (index==0 && mDynamic[index].getCurrent()<1)
|
||||||
{
|
{
|
||||||
mDead = true;
|
mDead = true;
|
||||||
|
|
||||||
|
mDynamic[index].setModifier(0);
|
||||||
mDynamic[index].setCurrent(0);
|
mDynamic[index].setCurrent(0);
|
||||||
|
|
||||||
if (MWBase::Environment::get().getWorld()->getGodModeState())
|
if (MWBase::Environment::get().getWorld()->getGodModeState())
|
||||||
|
|
Loading…
Reference in a new issue