mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 16:19:41 +00:00
Fix summoning effects
This commit is contained in:
parent
a495b9b884
commit
183c46b0ef
1 changed files with 1 additions and 1 deletions
|
@ -763,7 +763,7 @@ namespace MWMechanics
|
||||||
|
|
||||||
bool hasSummonEffect = false;
|
bool hasSummonEffect = false;
|
||||||
for (MagicEffects::Collection::const_iterator it = effects.begin(); it != effects.end(); ++it)
|
for (MagicEffects::Collection::const_iterator it = effects.begin(); it != effects.end(); ++it)
|
||||||
if (it->first.mId >= ESM::MagicEffect::SummonScamp && it->first.mId <= ESM::MagicEffect::SummonStormAtronach)
|
if (isSummoningEffect(it->first.mId))
|
||||||
hasSummonEffect = true;
|
hasSummonEffect = true;
|
||||||
|
|
||||||
if (!creatureStats.getSummonedCreatureMap().empty() || !creatureStats.getSummonedCreatureGraveyard().empty() || hasSummonEffect)
|
if (!creatureStats.getSummonedCreatureMap().empty() || !creatureStats.getSummonedCreatureGraveyard().empty() || hasSummonEffect)
|
||||||
|
|
Loading…
Reference in a new issue