mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-30 07:21:12 +00:00
setDynamic workaround for broken endgame scripts (Fixes #2016)
This commit is contained in:
parent
7d35199396
commit
69bbbefc09
@ -222,6 +222,10 @@ namespace MWScript
|
|||||||
Interpreter::Type_Float diff = runtime[0].mFloat;
|
Interpreter::Type_Float diff = runtime[0].mFloat;
|
||||||
runtime.pop();
|
runtime.pop();
|
||||||
|
|
||||||
|
// workaround broken endgame scripts that kill dagoth ur
|
||||||
|
if (Misc::StringUtils::ciEqual(ptr.getCellRef().getRefId(), "dagoth_ur_1"))
|
||||||
|
return;
|
||||||
|
|
||||||
MWMechanics::CreatureStats& stats = ptr.getClass().getCreatureStats (ptr);
|
MWMechanics::CreatureStats& stats = ptr.getClass().getCreatureStats (ptr);
|
||||||
|
|
||||||
Interpreter::Type_Float current = stats.getDynamic(mIndex).getCurrent();
|
Interpreter::Type_Float current = stats.getDynamic(mIndex).getCurrent();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user