diff --git a/apps/openmw/mwlua/magicbindings.cpp b/apps/openmw/mwlua/magicbindings.cpp index ab097a8202..c4c95e5efe 100644 --- a/apps/openmw/mwlua/magicbindings.cpp +++ b/apps/openmw/mwlua/magicbindings.cpp @@ -284,6 +284,8 @@ namespace MWLua = sol::readonly_property([](const ESM::ENAMstruct& params) -> int { return params.mMagnMin; }); effectParamsT["magnitudeMax"] = sol::readonly_property([](const ESM::ENAMstruct& params) -> int { return params.mMagnMax; }); + effectParamsT["duration"] + = sol::readonly_property([](const ESM::ENAMstruct& params) -> int { return params.mDuration; }); // MagicEffect record auto magicEffectT = context.mLua->sol().new_usertype("ESM3_MagicEffect"); diff --git a/files/lua_api/openmw/core.lua b/files/lua_api/openmw/core.lua index 4fe9b082a5..c5b7c3deba 100644 --- a/files/lua_api/openmw/core.lua +++ b/files/lua_api/openmw/core.lua @@ -643,6 +643,7 @@ -- @field #number area -- @field #number magnitudeMin -- @field #number magnitudeMax +-- @field #number duration --- -- @type ActiveEffect