You may have target protection enabled. There are several things that may be on or off:
"T" - target protection on/off
"Q" - attack mode on/off
"Game Options Screen" - target protection checked on/off
To receive quicker answers to questions, please visit
https://discord.gg/xHYnhf7nyw . It's basically replaced these forums.