mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-29 00:06:43 +00:00
Properly assign effect attribute/skill in potion creation (Fixes #1704)
This commit is contained in:
parent
90b2709d6c
commit
4a1e561015
1 changed files with 7 additions and 1 deletions
|
@ -181,7 +181,13 @@ void MWMechanics::Alchemy::updateEffects()
|
||||||
ESM::ENAMstruct effect;
|
ESM::ENAMstruct effect;
|
||||||
effect.mEffectID = iter->mId;
|
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.mRange = 0;
|
||||||
effect.mArea = 0;
|
effect.mArea = 0;
|
||||||
|
|
Loading…
Reference in a new issue