* Changed handling of search library limiting effect.
* Added target replacement check to canBeTargeted check of permanent to get correct possible targets (fixes #381).