How animals prepare for war