1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-28 19:21:04 +00:00

Merge branch 'madsbuvi-master-patch-92066' into 'master'

Remove resolved TODO

See merge request OpenMW/openmw!3213
This commit is contained in:
psi29a 2023-07-09 14:09:26 +00:00
commit 657f55612e

View File

@ -655,9 +655,6 @@ namespace MWLua
// spell), we still need to use the active spells store to purge this effect from active spells.
auto ptr = effects.mActor.ptr();
// TODO: The current ActiveSpell API does not allow us to differentiate between skill/attribute parameters
// of effects. So this cannot remove e.g. "Fortify Luck" without also removing all other fortify attribute
// effects such as "Fortify Speed".
auto& activeSpells = ptr.getClass().getCreatureStats(ptr).getActiveSpells();
activeSpells.purgeEffect(ptr, key.mId, key.mArg);