Why am I attacked online?

I created another account in this game, and attacked my other base to know if it would show the message saying “I’m online”, and even being online I was able to attack my other base. Can anyone tell me why this happens?

Oh boy! Where are you going ! Just hold on for a sec.

You should check this thread once. It is clearly said having multiple accounts in any given time is direct violation of terms & conditions. This can lead to your account termination. So play with one account and one account only. Play fair ?

Well, this morning I was also attacked while being online for just a few moments. No raiding sign visible after login. I was chatting with another member at that moment. Not that I care, the friendly visitor left 100 gems behind. He is allowed to attack me all day long ?