mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 10:23:52 +00:00
Enchanting: fix being able to create On Touch / On Target constant effect enchantments (this combination makes no sense)
This commit is contained in:
parent
ead6bf1601
commit
74c345f790
1 changed files with 2 additions and 2 deletions
|
@ -198,11 +198,11 @@ namespace MWGui
|
||||||
mRangeButton->setCaptionWithReplacing ("#{sRangeTouch}");
|
mRangeButton->setCaptionWithReplacing ("#{sRangeTouch}");
|
||||||
|
|
||||||
// cycle through range types until we find something that's allowed
|
// cycle through range types until we find something that's allowed
|
||||||
if (mEffect.mRange == ESM::RT_Target && !(mMagicEffect->mData.mFlags & ESM::MagicEffect::CastTarget))
|
if (mEffect.mRange == ESM::RT_Target && (!(mMagicEffect->mData.mFlags & ESM::MagicEffect::CastTarget) || constantEffect))
|
||||||
onRangeButtonClicked(sender);
|
onRangeButtonClicked(sender);
|
||||||
if (mEffect.mRange == ESM::RT_Self && !(mMagicEffect->mData.mFlags & ESM::MagicEffect::CastSelf))
|
if (mEffect.mRange == ESM::RT_Self && !(mMagicEffect->mData.mFlags & ESM::MagicEffect::CastSelf))
|
||||||
onRangeButtonClicked(sender);
|
onRangeButtonClicked(sender);
|
||||||
if (mEffect.mRange == ESM::RT_Touch && !(mMagicEffect->mData.mFlags & ESM::MagicEffect::CastTouch))
|
if (mEffect.mRange == ESM::RT_Touch && (!(mMagicEffect->mData.mFlags & ESM::MagicEffect::CastTouch) || constantEffect))
|
||||||
onRangeButtonClicked(sender);
|
onRangeButtonClicked(sender);
|
||||||
|
|
||||||
if(mEffect.mRange == ESM::RT_Self)
|
if(mEffect.mRange == ESM::RT_Self)
|
||||||
|
|
Loading…
Reference in a new issue