Legend of Mighty Magic by Gamebau for Android/iOS (iPhone/iPad).
Where another player challenges you, he/she will fight against your defensive squad.
If your defensive squad loses, your rank will goes down.
So it is important to assemble a strong defensive squad too!
If your defensive squad wins, you may receive reward for your performance.