1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-30 12:32:36 +00:00

Merge pull request #1068 from Allofich/intervention

Vfx after Divine/Almsivi intervention should be attached to player
This commit is contained in:
scrawl 2016-09-19 15:34:31 +02:00 committed by GitHub
commit 106a99ef8f

View File

@ -655,8 +655,7 @@ namespace MWMechanics
const ESM::Static* fx = MWBase::Environment::get().getWorld()->getStore().get<ESM::Static>()
.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<ESM::Static>()
.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;
}