mirror of
https://github.com/OpenMW/openmw.git
synced 2025-10-16 21:46:34 +00:00
Merge branch 'enchantment_exclamationmark' into 'master'
Allow GetSpellEffects to detect enchantments by id Closes #3769 See merge request OpenMW/openmw!4521
This commit is contained in:
commit
2b0e5c3cc1
1 changed files with 2 additions and 2 deletions
|
@ -884,8 +884,8 @@ namespace MWScript
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const MWMechanics::CreatureStats& stats = ptr.getClass().getCreatureStats(ptr);
|
const auto& activeSpells = ptr.getClass().getCreatureStats(ptr).getActiveSpells();
|
||||||
runtime.push(stats.getActiveSpells().isSpellActive(id));
|
runtime.push(activeSpells.isSpellActive(id) || activeSpells.isEnchantmentActive(id));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue