summaryrefslogtreecommitdiff
path: root/Thronefall_v1.0/Decompile/AutoAttackLowestHealth.cs
blob: 4db887b893cc1b5340213350acae1bc65288dfec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public class AutoAttackLowestHealth : AutoAttack
{
	public bool excludeFullHealthTargets = true;

	public override TaggedObject FindAutoAttackTarget()
	{
		for (int i = 0; i < targetPriorities.Count; i++)
		{
			TaggedObject taggedObject = targetPriorities[i].FindLowestHealthObjectInRange(base.transform.position, excludeFullHealthTargets);
			if (taggedObject != null)
			{
				return taggedObject;
			}
		}
		return null;
	}
}