mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 04:10:24 +00:00
Apply on self effects on projectiles to the target instead
This commit is contained in:
parent
a854a6e04a
commit
63fa6d3b7c
2 changed files with 5 additions and 1 deletions
|
@ -53,6 +53,7 @@
|
||||||
Bug #6291: Can't pickup the dead mage's journal from the mysterious hunter mod
|
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 #6302: Teleporting disabled actor breaks its disabled state
|
||||||
Bug #6307: Pathfinding in Infidelities quest from Tribunal addon is broken
|
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 #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 #6323: Wyrmhaven: Alboin doesn't follower the player character out of his house
|
||||||
Bug #6326: Detect Enchantment/Key should detect items in unresolved containers
|
Bug #6326: Detect Enchantment/Key should detect items in unresolved containers
|
||||||
|
|
|
@ -333,6 +333,9 @@ namespace MWMechanics
|
||||||
mCaster.getClass().skillUsageSucceeded (mCaster, ESM::Skill::Enchant, 3);
|
mCaster.getClass().skillUsageSucceeded (mCaster, ESM::Skill::Enchant, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isProjectile)
|
||||||
|
inflict(mTarget, mCaster, enchantment->mEffects, ESM::RT_Self);
|
||||||
|
else
|
||||||
inflict(mCaster, mCaster, enchantment->mEffects, ESM::RT_Self);
|
inflict(mCaster, mCaster, enchantment->mEffects, ESM::RT_Self);
|
||||||
|
|
||||||
if (isProjectile || !mTarget.isEmpty())
|
if (isProjectile || !mTarget.isEmpty())
|
||||||
|
|
Loading…
Reference in a new issue