﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	phab_field
1310	Make domestic herd animals capurable	leper		"Domestic herd animals like sheep and goats should change ownership to the player with a unit in conversion range capable of converting said animal, if there are no enemy units in range.

* To achieve this behaviour one should add a !RangeQuery to the ""ANIMAL"" state in UnitAI.js.
* The animal would become property of a player, and have their colour for it's selection ring
   A code sample for the ownership change
{{{
  var cmpNewOwnership = Engine.QueryInterface(ent, IID_Ownership);
  cmpNewOwnership.SetOwner(cmpOwnership.GetOwner());
}}}
* The animal can be recaptured by another player.

Some points that should already be this way (just used for reference/documentation)
* The animal can only be tasked to move by the player who owns it
* Any player (whether they own the animal or not) can stil kill and harvest from it.
* Domestic animals created by the player (goats, sheep etc) should automatically be owned by that player

Note: #997 specifies some additional enhancements, but those are NOT needed for the completiton of this ticket."	enhancement	closed	Should Have		UI & Simulation	duplicate	simple		
