Evolutionary dynamics of the generalized War of Attrition game.