1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-15 22:39:42 +00:00

Apply on self effects on projectiles to the target instead

This commit is contained in:
Evil Eye 2021-10-21 17:28:36 +02:00
parent a854a6e04a
commit 63fa6d3b7c
2 changed files with 5 additions and 1 deletions
CHANGELOG.md
apps/openmw/mwmechanics

View file

@ -53,6 +53,7 @@
Bug #6291: Can't pickup the dead mage's journal from the mysterious hunter mod
Bug #6302: Teleporting disabled actor breaks its disabled state
Bug #6307: Pathfinding in Infidelities quest from Tribunal addon is broken
Bug #6321: Arrow enchantments should always be applied to the target
Bug #6322: Total sold/cost should reset to 0 when there are no items offered
Bug #6323: Wyrmhaven: Alboin doesn't follower the player character out of his house
Bug #6326: Detect Enchantment/Key should detect items in unresolved containers

View file

@ -333,7 +333,10 @@ namespace MWMechanics
mCaster.getClass().skillUsageSucceeded (mCaster, ESM::Skill::Enchant, 3);
}
inflict(mCaster, mCaster, enchantment->mEffects, ESM::RT_Self);
if (isProjectile)
inflict(mTarget, mCaster, enchantment->mEffects, ESM::RT_Self);
else
inflict(mCaster, mCaster, enchantment->mEffects, ESM::RT_Self);
if (isProjectile || !mTarget.isEmpty())
inflict(mTarget, mCaster, enchantment->mEffects, ESM::RT_Touch);