mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-04 21:19:41 +00:00
[Client] Make potion effects work with SpellsActive packets, part 2
This commit is contained in:
parent
5a852fe6db
commit
da16c211a4
1 changed files with 2 additions and 7 deletions
|
@ -490,13 +490,8 @@ void DedicatedPlayer::addSpellsActive()
|
|||
|
||||
for (const auto& activeSpell : spellsActiveChanges.activeSpells)
|
||||
{
|
||||
// Only add spells that are ensured to exist
|
||||
if (MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().search(activeSpell.id))
|
||||
{
|
||||
activeSpells.addSpell(activeSpell.id, false, activeSpell.params.mEffects, activeSpell.params.mDisplayName, 1);
|
||||
}
|
||||
else
|
||||
LOG_APPEND(TimedLog::LOG_INFO, "- Ignored addition of invalid spell %s", activeSpell.id.c_str());
|
||||
// Don't do a check for a spell's existence, because active effects from potions need to be applied here too
|
||||
activeSpells.addSpell(activeSpell.id, activeSpell.shouldStack, activeSpell.params.mEffects, activeSpell.params.mDisplayName, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue