mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-06-21 19:41:38 +00:00
[Client] Don't clear spells for dying actors
This commit is contained in:
parent
23d410f473
commit
7acf6865b9
1 changed files with 12 additions and 1 deletions
|
@ -2057,7 +2057,18 @@ namespace MWMechanics
|
||||||
// One case where we need this is to make sure bound items are removed upon death
|
// One case where we need this is to make sure bound items are removed upon death
|
||||||
stats.modifyMagicEffects(MWMechanics::MagicEffects());
|
stats.modifyMagicEffects(MWMechanics::MagicEffects());
|
||||||
stats.getActiveSpells().clear();
|
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
|
// Make sure spell effects are removed
|
||||||
purgeSpellEffects(stats.getActorId());
|
purgeSpellEffects(stats.getActorId());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue