1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-03 20:45:31 +00:00

[Client] Don't clear spells for dying actors

This commit is contained in:
David Cernat 2019-11-29 19:49:17 +02:00
parent 23d410f473
commit 7acf6865b9

View file

@ -2057,7 +2057,18 @@ namespace MWMechanics
// One case where we need this is to make sure bound items are removed upon death
stats.modifyMagicEffects(MWMechanics::MagicEffects());
stats.getActiveSpells().clear();
stats.getSpells().clear();
/*
Start of tes3mp change (major)
Don't clear spells for dying players and actors because it doesn't really make
any sense
*/
//stats.getSpells().clear();
/*
End of tes3mp change (major)
*/
// Make sure spell effects are removed
purgeSpellEffects(stats.getActorId());