Prevent magic bolts from colliding with their caster

deque
scrawl 11 years ago
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…
Cancel
Save