Whether or not to defend? The influence of resource distribution