Think about it, both heroes are upgrading and you get attacked in CW mode. The heroes magically defend your war base even though they're supposed to be sleeping. But then your attacking a war base and your heroes are sleeping.
They should either be sleeping in both defense and attack mode whilst they're upgrading or usable in both defence and attack mode. You can't have them sleep in one and attack in another whilst they're upgrading.



