mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 04:15:31 +00:00
Prevent magic bolts from colliding with their caster
This commit is contained in:
parent
df8e095c83
commit
a2f156be8e
1 changed files with 4 additions and 0 deletions
|
@ -152,6 +152,10 @@ namespace MWWorld
|
|||
MWWorld::Ptr obstacle = MWBase::Environment::get().getWorld()->searchPtrViaHandle(cIt->second);
|
||||
|
||||
MWWorld::Ptr caster = MWBase::Environment::get().getWorld()->searchPtrViaActorId(it->mActorId);
|
||||
|
||||
if (!obstacle.isEmpty() && obstacle == caster)
|
||||
continue;
|
||||
|
||||
if (caster.isEmpty())
|
||||
caster = obstacle;
|
||||
|
||||
|
|
Loading…
Reference in a new issue