mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +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)
|
||||
{
|
||||
mDead = true;
|
||||
|
||||
mDynamic[index].setModifier(0);
|
||||
mDynamic[index].setCurrent(0);
|
||||
|
||||
if (MWBase::Environment::get().getWorld()->getGodModeState())
|
||||
|
|
Loading…
Reference in a new issue