mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
Fix magic hit VFX showing when casting on a static object
This commit is contained in:
parent
4b2391c60f
commit
ca21e9ecb1
@ -2653,6 +2653,10 @@ namespace MWWorld
|
||||
target = result.mHitObject;
|
||||
hitPosition = result.mHitPos;
|
||||
|
||||
// don't allow casting on non-activatable objects
|
||||
if (!target.isEmpty() && !target.getClass().isActor() && target.getClass().getName(target).empty())
|
||||
target = MWWorld::Ptr();
|
||||
|
||||
std::string selectedSpell = stats.getSpells().getSelectedSpell();
|
||||
|
||||
MWMechanics::CastSpell cast(actor, target);
|
||||
|
Loading…
x
Reference in New Issue
Block a user