mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-31 19:20:26 +00:00
Properly assign effect attribute/skill in potion creation (Fixes #1704)
This commit is contained in:
parent
90b2709d6c
commit
4a1e561015
@ -181,7 +181,13 @@ void MWMechanics::Alchemy::updateEffects()
|
||||
ESM::ENAMstruct effect;
|
||||
effect.mEffectID = iter->mId;
|
||||
|
||||
effect.mSkill = effect.mAttribute = iter->mArg; // somewhat hack-ish, but should work
|
||||
effect.mAttribute = -1;
|
||||
effect.mSkill = -1;
|
||||
|
||||
if (magicEffect->mData.mFlags & ESM::MagicEffect::TargetSkill)
|
||||
effect.mSkill = iter->mArg;
|
||||
else if (magicEffect->mData.mFlags & ESM::MagicEffect::TargetAttribute)
|
||||
effect.mAttribute = iter->mArg;
|
||||
|
||||
effect.mRange = 0;
|
||||
effect.mArea = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user