add flag factor into damage formula