It is very important to note, that when attacking Shapeshifter targets, all your troops will return to your castle without any loss (in normal mode - even in defeat) BUT you will lose all the tools that have been used during the attack.

This is an intended behavior. Normal mode only protects you from the loss of units, not your war machines.