I have to modify the code, unless you want want to iterate over the targets
again and re-running the proc if the target selected in the initial
iteration does not fit the requirements.
On Dec 1, 2013 12:44 PM, "Giacom" <notifications@github.com> wrote:

> In code/modules/mob/living/simple_animal/hostile/assistant.dm:
>
> > +	wall_smash = 1
> > +
> > +/mob/living/simple_animal/hostile/assistant/New()
> > +	..()
> > +	name += " [pick(last_names)]"
> > +
> > +/mob/living/simple_animal/hostile/assistant/Die()
> > +	..()
> > +	if(corpse)
> > +		new corpse (src.loc)
> > +	if(weapon1)
> > +		new weapon1 (src.loc)
> > +	del src
> > +	return
> > +
> > +/mob/living/simple_animal/hostile/assistant/FindTarget() //Modified FindTarget proc allows for sneaking
>
> http://en.wikipedia.org/wiki/Duplicate_code
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/tgstation/-tg-station/pull/1937/files#r8013553>
> .
>