mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-13 04:43:06 +00:00
Vfx after Divine/Almsivi intervention should be attached to player
This commit is contained in:
parent
d1157b3e10
commit
7e3cca6d37
1 changed files with 2 additions and 4 deletions
|
|
@ -655,8 +655,7 @@ namespace MWMechanics
|
||||||
const ESM::Static* fx = MWBase::Environment::get().getWorld()->getStore().get<ESM::Static>()
|
const ESM::Static* fx = MWBase::Environment::get().getWorld()->getStore().get<ESM::Static>()
|
||||||
.search("VFX_Summon_end");
|
.search("VFX_Summon_end");
|
||||||
if (fx)
|
if (fx)
|
||||||
MWBase::Environment::get().getWorld()->spawnEffect("meshes\\" + fx->mModel,
|
anim->addEffect("meshes\\" + fx->mModel, -1);
|
||||||
"", mCaster.getRefData().getPosition().asVec3());
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (effectId == ESM::MagicEffect::AlmsiviIntervention)
|
else if (effectId == ESM::MagicEffect::AlmsiviIntervention)
|
||||||
|
|
@ -666,8 +665,7 @@ namespace MWMechanics
|
||||||
const ESM::Static* fx = MWBase::Environment::get().getWorld()->getStore().get<ESM::Static>()
|
const ESM::Static* fx = MWBase::Environment::get().getWorld()->getStore().get<ESM::Static>()
|
||||||
.search("VFX_Summon_end");
|
.search("VFX_Summon_end");
|
||||||
if (fx)
|
if (fx)
|
||||||
MWBase::Environment::get().getWorld()->spawnEffect("meshes\\" + fx->mModel,
|
anim->addEffect("meshes\\" + fx->mModel, -1);
|
||||||
"", mCaster.getRefData().getPosition().asVec3());
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue