From 7e3cca6d37248bfb0b818e55666eb77246218fe8 Mon Sep 17 00:00:00 2001 From: Allofich Date: Mon, 19 Sep 2016 22:20:16 +0900 Subject: [PATCH] Vfx after Divine/Almsivi intervention should be attached to player --- apps/openmw/mwmechanics/spellcasting.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/openmw/mwmechanics/spellcasting.cpp b/apps/openmw/mwmechanics/spellcasting.cpp index b5b409bee..a02ee37b2 100644 --- a/apps/openmw/mwmechanics/spellcasting.cpp +++ b/apps/openmw/mwmechanics/spellcasting.cpp @@ -655,8 +655,7 @@ namespace MWMechanics const ESM::Static* fx = MWBase::Environment::get().getWorld()->getStore().get() .search("VFX_Summon_end"); if (fx) - MWBase::Environment::get().getWorld()->spawnEffect("meshes\\" + fx->mModel, - "", mCaster.getRefData().getPosition().asVec3()); + anim->addEffect("meshes\\" + fx->mModel, -1); return true; } else if (effectId == ESM::MagicEffect::AlmsiviIntervention) @@ -666,8 +665,7 @@ namespace MWMechanics const ESM::Static* fx = MWBase::Environment::get().getWorld()->getStore().get() .search("VFX_Summon_end"); if (fx) - MWBase::Environment::get().getWorld()->spawnEffect("meshes\\" + fx->mModel, - "", mCaster.getRefData().getPosition().asVec3()); + anim->addEffect("meshes\\" + fx->mModel, -1); return true; }