making changes noting state.buff is only nil if it's undefined