mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -04:00
Prevent magic bolts from colliding with their caster
This commit is contained in:
parent
df8e095c83
commit
a2f156be8e
@ -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…
x
Reference in New Issue
Block a user