mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
Merge pull request #2144 from Capostrophic/absorption
Don't apply effects when spell absorption is successful (bug #4820)
This commit is contained in:
commit
f68194c11d
2 changed files with 5 additions and 1 deletions
|
@ -21,6 +21,7 @@
|
|||
Bug #4800: Standing collisions are not updated immediately when an object is teleported without a cell change
|
||||
Bug #4803: Stray special characters before begin statement break script compilation
|
||||
Bug #4804: Particle system with the "Has Sizes = false" causes an exception
|
||||
Bug #4820: Spell absorption is broken
|
||||
Feature #2229: Improve pathfinding AI
|
||||
Feature #3442: Default values for fallbacks from ini file
|
||||
Feature #3610: Option to invert X axis
|
||||
|
|
|
@ -501,8 +501,11 @@ namespace MWMechanics
|
|||
|
||||
float magnitudeMult = 1;
|
||||
|
||||
if (!absorbed && target.getClass().isActor())
|
||||
if (target.getClass().isActor())
|
||||
{
|
||||
if (absorbed)
|
||||
continue;
|
||||
|
||||
bool isHarmful = magicEffect->mData.mFlags & ESM::MagicEffect::Harmful;
|
||||
// Reflect harmful effects
|
||||
if (isHarmful && !reflected && !caster.isEmpty() && caster != target && !(magicEffect->mData.mFlags & ESM::MagicEffect::Unreflectable))
|
||||
|
|
Loading…
Reference in a new issue