forked from mirror/openmw-tes3mp
GetEffect fix
This commit is contained in:
parent
3890afd6f5
commit
bd68ebac62
1 changed files with 1 additions and 1 deletions
|
@ -425,7 +425,7 @@ namespace MWScript
|
|||
const MWMechanics::MagicEffects& effects = ptr.getClass().getCreatureStats(ptr).getMagicEffects();
|
||||
for (MWMechanics::MagicEffects::Collection::const_iterator it = effects.begin(); it != effects.end(); ++it)
|
||||
{
|
||||
if (it->first.mId == key)
|
||||
if (it->first.mId == key && it->second.getModifier() > 0)
|
||||
{
|
||||
runtime.push(1);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue