What are the rules for Tower targeting in Smite?

How do towers (and pheonixes and titans etc) decide when to attack minions vs gods when both are in range?
I've personally seen several scenarios where towers ignore minions in favor of gods, when the minions are closer to the tower and attacking it. Other times, I've seen towers attack archers while 4 or 5 gods melee the tower.
I've also been targeted by a tower while I fought another god in the tower circle, even though friendly gods and minions were attacking that tower at the same time, at a much closer range.
I previously thought towers preferred minions before gods. Then I thought it attacked the most healthy enemy within range. Then I thought it attacked maybe the enemy with the highest damage potential, or highest kills, but these all seem to be proven wrong in one situation or another.
Is there a solid rule for their behavior? I'm on console but i assume this isn't platform-specific.
Pictures about "What are the rules for Tower targeting in Smite?"



How does tower damage work in smite?
When a physical god attacks a Tower with their Basic Attack, Towers will only receive 85% of their Basic Attack damage. However, when a magical god attacks, the Tower will take 120% of their Basic Attack damage.Can you heal a tower in smite?
Towers don't stop attacking their targets until they leave it's fire range or until they die. Towers cannot be healed nor repaired, and once they are destroyed they cannot be replaced. Phoenix: The Phoenixes are the second line of defense.Why does tower target me?
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Charles Parker, sergio souza, sergio souza, sergio souza